Fix Attributor return status

Differential Revision: https://reviews.llvm.org/D86703
This commit is contained in:
serge-sans-paille 2020-08-27 14:34:32 +02:00
parent ac87a0b587
commit 5621571fc7
1 changed files with 3 additions and 0 deletions

View File

@ -1301,6 +1301,9 @@ ChangeStatus Attributor::cleanupIR() {
for (Function *Fn : ToBeDeletedFunctions) for (Function *Fn : ToBeDeletedFunctions)
CGUpdater.removeFunction(*Fn); CGUpdater.removeFunction(*Fn);
if (!ToBeDeletedFunctions.empty())
ManifestChange = ChangeStatus::CHANGED;
NumFnDeleted += ToBeDeletedFunctions.size(); NumFnDeleted += ToBeDeletedFunctions.size();
LLVM_DEBUG(dbgs() << "[Attributor] Deleted " << NumFnDeleted LLVM_DEBUG(dbgs() << "[Attributor] Deleted " << NumFnDeleted