Fix disagreement about where the attributes are
[oota-llvm.git] / include / llvm / Function.h
index f2b1a4f4361977e6f5182e0eebffff15ef274b61..4a078d6845f20461ebb77f5f76cfa253f2b5612e 100644 (file)
@@ -158,7 +158,7 @@ public:
   ///
   void addFnAttr(Attributes N) { 
     // Function Attributes are stored at ~0 index 
-    addAttribute(~0, N);
+    addAttribute(~0U, N);
   }
 
   /// hasGC/getGC/setGC/clearGC - The name of the garbage collection algorithm