From a62b5eded61dfaf5cae63fb6bfd5b514865fb134 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 17 Jul 2009 16:12:36 +0000 Subject: [PATCH] Fix an apparent typo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76183 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instructions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 6fa434cccfa..9a20a2fd0c2 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -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); -- 2.34.1