diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-26 22:53:05 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-26 22:53:05 +0000 |
commit | a05633e105cc2df01f0a5017b1269b6f32e01416 (patch) | |
tree | 0cd054e5465d3df86a493c7b0d9b45d069190cdf /llvm/lib/Transforms/IPO/PruneEH.cpp | |
parent | c966a737c52264b95387f677f6200c21274a9403 (diff) | |
download | bcm5719-llvm-a05633e105cc2df01f0a5017b1269b6f32e01416.tar.gz bcm5719-llvm-a05633e105cc2df01f0a5017b1269b6f32e01416.zip |
Now Attributes are divided in three groups
- return attributes - inreg, zext and sext
- parameter attributes
- function attributes - nounwind, readonly, readnone, noreturn
Return attributes use 0 as the index.
Function attributes use ~0U as the index.
This patch requires corresponding changes in llvm-gcc and clang.
llvm-svn: 56704
Diffstat (limited to 'llvm/lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/PruneEH.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp index 821e7d5da97..622184415cb 100644 --- a/llvm/lib/Transforms/IPO/PruneEH.cpp +++ b/llvm/lib/Transforms/IPO/PruneEH.cpp @@ -133,7 +133,7 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) { NewAttributes |= Attribute::NoReturn; const AttrListPtr &PAL = SCC[i]->getFunction()->getAttributes(); - const AttrListPtr &NPAL = PAL.addAttr(0, NewAttributes); + const AttrListPtr &NPAL = PAL.addAttr(~0, NewAttributes); if (PAL != NPAL) { MadeChange = true; SCC[i]->getFunction()->setAttributes(NPAL); |