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 00c641f commit c5cfed0Copy full SHA for c5cfed0
bolt/lib/Passes/PLTCall.cpp
@@ -73,6 +73,7 @@ Error PLTCall::runOnFunctions(BinaryContext &BC) {
73
const InstructionListType NewCode = BC.MIB->createIndirectPltCall(
74
*II, CalleeBF->getPLTSymbol(), BC.Ctx.get());
75
II = BB.replaceInstruction(II, NewCode);
76
+ assert(!NewCode.empty() && "PLT Call replacement must be non-empty");
77
std::advance(II, NewCode.size() - 1);
78
BC.MIB->addAnnotation(*II, "PLTCall", true);
79
++NumCallsOptimized;
0 commit comments