diff options
author | Dan Gohman <djg@cray.com> | 2007-07-20 23:14:50 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-07-20 23:14:50 +0000 |
commit | d88b14d7585c5dd2d9253251fb24aa0fa43750f5 (patch) | |
tree | c04d957c40e5b2ccdaceda100598049afe4671e5 /include/llvm/Instructions.h | |
parent | 516d11a0d34bd1accf6d382ff3c03d3c1777e121 (diff) | |
download | external_llvm-d88b14d7585c5dd2d9253251fb24aa0fa43750f5.zip external_llvm-d88b14d7585c5dd2d9253251fb24aa0fa43750f5.tar.gz external_llvm-d88b14d7585c5dd2d9253251fb24aa0fa43750f5.tar.bz2 |
Simplify the logic for setVolatile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 2f001c6..2412298 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -253,7 +253,7 @@ public: /// setVolatile - Specify whether this is a volatile load or not. /// void setVolatile(bool V) { - SubclassData = (SubclassData & ~1) | ((V) ? 1 : 0); + SubclassData = (SubclassData & ~1) | V; } virtual LoadInst *clone() const; @@ -321,7 +321,7 @@ public: /// setVolatile - Specify whether this is a volatile load or not. /// void setVolatile(bool V) { - SubclassData = (SubclassData & ~1) | ((V) ? 1 : 0); + SubclassData = (SubclassData & ~1) | V; } /// Transparently provide more efficient getOperand methods. |