From: Dan Gohman Date: Fri, 17 Jul 2009 16:12:36 +0000 (+0000) Subject: Fix an apparent typo. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a62b5eded61dfaf5cae63fb6bfd5b514865fb134;p=oota-llvm.git Fix an apparent typo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76183 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);