diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-20 23:14:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-20 23:14:50 +0000 |
commit | b1d1f7a03518d1fd38fa8e228c2ee750d59e9af8 (patch) | |
tree | c04d957c40e5b2ccdaceda100598049afe4671e5 | |
parent | 3e54953c5f7fa30476458ee742dbb3de44a64bea (diff) |
Simplify the logic for setVolatile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40130 91177308-0d34-0410-b5e6-96231b3b80d8
-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 2f001c654a..24122986b8 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. |