[llvm-commits] [llvm] r57268 - /llvm/trunk/include/llvm/Function.h

Eric Christopher echristo at apple.com
Tue Oct 7 15:33:45 PDT 2008


Author: echristo
Date: Tue Oct  7 17:33:44 2008
New Revision: 57268

URL: http://llvm.org/viewvc/llvm-project?rev=57268&view=rev
Log:
Fix disagreement about where the attributes are
~0 != ~0U.


Modified:
    llvm/trunk/include/llvm/Function.h

Modified: llvm/trunk/include/llvm/Function.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Function.h?rev=57268&r1=57267&r2=57268&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Function.h (original)
+++ llvm/trunk/include/llvm/Function.h Tue Oct  7 17:33:44 2008
@@ -158,7 +158,7 @@
   ///
   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





More information about the llvm-commits mailing list