Skip to content

Commit 5621571

Browse files
author
serge-sans-paille
committed
Fix Attributor return status
Differential Revision: https://reviews.llvm.org/D86703
1 parent ac87a0b commit 5621571

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/IPO/Attributor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,9 @@ ChangeStatus Attributor::cleanupIR() {
13011301
for (Function *Fn : ToBeDeletedFunctions)
13021302
CGUpdater.removeFunction(*Fn);
13031303

1304+
if (!ToBeDeletedFunctions.empty())
1305+
ManifestChange = ChangeStatus::CHANGED;
1306+
13041307
NumFnDeleted += ToBeDeletedFunctions.size();
13051308

13061309
LLVM_DEBUG(dbgs() << "[Attributor] Deleted " << NumFnDeleted

0 commit comments

Comments
 (0)