[llvm-commits] [llvm] r76183 - /llvm/trunk/include/llvm/Instructions.h

Dan Gohman gohman at apple.com
Fri Jul 17 09:13:21 PDT 2009


Author: djg
Date: Fri Jul 17 11:12:36 2009
New Revision: 76183

URL: http://llvm.org/viewvc/llvm-project?rev=76183&view=rev
Log:
Fix an apparent typo.

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

Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=76183&r1=76182&r2=76183&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Fri Jul 17 11:12:36 2009
@@ -2398,7 +2398,7 @@
 
   /// @brief Determine if the call does not access memory.
   bool doesNotAccessMemory() const {
-    return paramHasAttr(0, Attribute::ReadNone);
+    return paramHasAttr(~0, Attribute::ReadNone);
   }
   void setDoesNotAccessMemory(bool NotAccessMemory = true) {
     if (NotAccessMemory) addAttribute(~0, Attribute::ReadNone);





More information about the llvm-commits mailing list