diff options
author | Duncan Sands <baldrick@free.fr> | 2008-09-05 09:08:37 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-09-05 09:08:37 +0000 |
commit | cae62e34984e413414304eab959797ec5c2cbf32 (patch) | |
tree | 285a8561495a3d79b8d92b433cdfd469225c1db7 /lib/Transforms/IPO | |
parent | 1c11debc94baa65b7af702bbc20c813c266afb19 (diff) | |
download | external_llvm-cae62e34984e413414304eab959797ec5c2cbf32.zip external_llvm-cae62e34984e413414304eab959797ec5c2cbf32.tar.gz external_llvm-cae62e34984e413414304eab959797ec5c2cbf32.tar.bz2 |
Make this pass return that it made a change if
it modifies a functions attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/PruneEH.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 5e50e20..8fb904b 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -133,7 +133,11 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) { NewAttributes |= ParamAttr::NoReturn; const PAListPtr &PAL = SCC[i]->getFunction()->getParamAttrs(); - SCC[i]->getFunction()->setParamAttrs(PAL.addAttr(0, NewAttributes)); + const PAListPtr &NPAL = PAL.addAttr(0, NewAttributes); + if (PAL != NPAL) { + MadeChange = true; + SCC[i]->getFunction()->setParamAttrs(NPAL); + } } for (unsigned i = 0, e = SCC.size(); i != e; ++i) { |