Skip to content

Commit d8a6f1a

Browse files
author
Ash Dobrescu
committed
[BOLT] Ensure remember and restore CFIs are in the same list
1 parent 299a55a commit d8a6f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/include/bolt/Core/BinaryFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ class BinaryFunction {
16631663
Offset = I->first;
16641664
}
16651665
assert(I->first == Offset && "CFI pointing to unknown instruction");
1666-
if (I == Instructions.begin()) {
1666+
if (I == Instructions.begin() && Inst.getOperation() != MCCFIInstruction::OpRememberState) {
16671667
CIEFrameInstructions.emplace_back(std::forward<MCCFIInstruction>(Inst));
16681668
return;
16691669
}

0 commit comments

Comments
 (0)