Skip to content

Commit 81d4e20

Browse files
committed
[BOLT] Fix param order
1 parent dc18b90 commit 81d4e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/lib/Passes/LongJmp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ Error LongJmpPass::relaxStub(BinaryBasicBlock &StubBB, bool &Modified) {
506506
if (TargetFunction && !TargetFunction->hasCFG()) {
507507
auto FirstII = TargetFunction->instrs().begin();
508508
MCInst FirstInst = FirstII->second;
509-
if (BC.MIB->isBTIVariantCoveringCall(FirstInst,
510-
*StubBB.getLastNonPseudoInstr()))
509+
if (BC.MIB->isCallCoveredByBTI(*StubBB.getLastNonPseudoInstr(),
510+
FirstInst))
511511
return;
512512
BC.errs()
513513
<< "BOLT-ERROR: Cannot add BTI landing pad to function without CFG: "

0 commit comments

Comments
 (0)