Fix an apparent typo.

llvm-svn: 76183
This commit is contained in:
Dan Gohman 2009-07-17 16:12:36 +00:00
parent d3d52aabdf
commit ce51c29bca
1 changed files with 1 additions and 1 deletions

View 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);