aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-17 16:12:36 +0000
committerDan Gohman <gohman@apple.com>2009-07-17 16:12:36 +0000
commita62b5eded61dfaf5cae63fb6bfd5b514865fb134 (patch)
treed613e9a1ea4d7e47bbbb67e0968980e55408540d /include
parent502424616751e31079308df9b44fc0180507039d (diff)
downloadexternal_llvm-a62b5eded61dfaf5cae63fb6bfd5b514865fb134.zip
external_llvm-a62b5eded61dfaf5cae63fb6bfd5b514865fb134.tar.gz
external_llvm-a62b5eded61dfaf5cae63fb6bfd5b514865fb134.tar.bz2
Fix an apparent typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 6fa434c..9a20a2f 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);