[PATCH] D86703: Fix Attributor return status

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 06:01:32 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5621571fc7fc: Fix Attributor return status (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86703/new/

https://reviews.llvm.org/D86703

Files:
  llvm/lib/Transforms/IPO/Attributor.cpp


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86703.288300.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200827/b53ef4fe/attachment.bin>


More information about the llvm-commits mailing list