diff --git a/bytecode/src/bytecode.rs b/bytecode/src/bytecode.rs index 33c673e35..74a74af50 100644 --- a/bytecode/src/bytecode.rs +++ b/bytecode/src/bytecode.rs @@ -146,7 +146,7 @@ impl CodeFlags { #[derive(Serialize, Debug, Deserialize, Clone, Copy, PartialEq, Eq, Hash, Ord, PartialOrd)] #[repr(transparent)] // XXX: if you add a new instruction that stores a Label, make sure to add it in -// compile::CodeInfo::finalize_code +// compile::CodeInfo::finalize_code and CodeObject::label_targets pub struct Label(pub usize); impl fmt::Display for Label { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -598,25 +598,38 @@ impl CodeObject { pub fn label_targets(&self) -> BTreeSet