Fix an apparent typo.
authorDan Gohman <gohman@apple.com>
Fri, 17 Jul 2009 16:12:36 +0000 (16:12 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 17 Jul 2009 16:12:36 +0000 (16:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76183 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index 6fa434cccfad5ecaafb4d92abd833d15118d8ad7..9a20a2fd0c204d23314d56fafe92b224198bf314 100644 (file)
@@ -2398,7 +2398,7 @@ public:
 
   /// @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);