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 aee553e commit c8f2ee7Copy full SHA for c8f2ee7
llvm/lib/Transforms/IPO/Attributor.cpp
@@ -2554,10 +2554,9 @@ ChangeStatus Attributor::cleanupIR() {
2554
2555
for (const auto &V : ToBeDeletedInsts) {
2556
if (Instruction *I = dyn_cast_or_null<Instruction>(V)) {
2557
- if (auto *CB = dyn_cast<CallBase>(I)) {
2558
- assert((isa<IntrinsicInst>(CB) || isRunOn(*I->getFunction())) &&
2559
- "Cannot delete an instruction outside the current SCC!");
2560
- }
+ assert((!isa<CallBase>(I) || isa<IntrinsicInst>(I) ||
+ isRunOn(*I->getFunction())) &&
+ "Cannot delete an instruction outside the current SCC!");
2561
I->dropDroppableUses();
2562
CGModifiedFunctions.insert(I->getFunction());
2563
if (!I->getType()->isVoidTy())
0 commit comments