- Add a "getOrInsertGlobal" method to the Module class. This acts similarly to
[oota-llvm.git] / lib / VMCore / Function.cpp
index f16042b7f53f5f028133925fd58caf70d4a81c0e..ddc6ace327864adfa3201c5d1b7796e3a4a3a962 100644 (file)
@@ -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);
 }