forked from OSchip/llvm-project
Fix Attributor return status
Differential Revision: https://reviews.llvm.org/D86703
This commit is contained in:
parent
ac87a0b587
commit
5621571fc7
|
@ -1301,6 +1301,9 @@ ChangeStatus Attributor::cleanupIR() {
|
|||
for (Function *Fn : ToBeDeletedFunctions)
|
||||
CGUpdater.removeFunction(*Fn);
|
||||
|
||||
if (!ToBeDeletedFunctions.empty())
|
||||
ManifestChange = ChangeStatus::CHANGED;
|
||||
|
||||
NumFnDeleted += ToBeDeletedFunctions.size();
|
||||
|
||||
LLVM_DEBUG(dbgs() << "[Attributor] Deleted " << NumFnDeleted
|
||||
|
|
Loading…
Reference in New Issue