We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da37139 commit 43e9eaeCopy full SHA for 43e9eae
bolt/lib/Passes/BinaryPasses.cpp
@@ -619,8 +619,11 @@ void LowerAnnotations::runOnFunctions(BinaryContext &BC) {
619
}
620
for (BinaryFunction *BF : BC.getInjectedBinaryFunctions())
621
for (BinaryBasicBlock &BB : *BF)
622
- for (MCInst &Instruction : BB)
+ for (MCInst &Instruction : BB) {
623
+ if (auto Label = BC.MIB->getLabel(Instruction))
624
+ PreservedLabelAnnotations.emplace_back(&Instruction, *Label);
625
BC.MIB->stripAnnotations(Instruction);
626
+ }
627
628
// Release all memory taken by annotations
629
BC.MIB->freeAnnotations();
0 commit comments