summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-26 22:53:05 +0000
committerDevang Patel <dpatel@apple.com>2008-09-26 22:53:05 +0000
commita05633e105cc2df01f0a5017b1269b6f32e01416 (patch)
tree0cd054e5465d3df86a493c7b0d9b45d069190cdf /llvm/lib/VMCore/Function.cpp
parentc966a737c52264b95387f677f6200c21274a9403 (diff)
downloadbcm5719-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/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index f16042b7f53..ddc6ace3278 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/lib/VMCore/Function.cpp
@@ -365,7 +365,7 @@ AttrListPtr Intrinsic::getAttributes(ID id) {
// Intrinsics cannot throw exceptions.
Attr |= Attribute::NoUnwind;
- AttributeWithIndex PAWI = AttributeWithIndex::get(0, Attr);
+ AttributeWithIndex PAWI = AttributeWithIndex::get(~0, Attr);
return AttrListPtr::get(&PAWI, 1);
}
OpenPOWER on IntegriCloud