Simplify the logic for setVolatile.

llvm-svn: 40130
This commit is contained in:
Dan Gohman 2007-07-20 23:14:50 +00:00
parent e5bd260ffc
commit 0648c694c8
1 changed files with 2 additions and 2 deletions

View File

@ -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.