[llvm-commits] [llvm] r40130 - /llvm/trunk/include/llvm/Instructions.h
Dan Gohman
djg at cray.com
Fri Jul 20 16:14:51 PDT 2007
Author: djg
Date: Fri Jul 20 18:14:50 2007
New Revision: 40130
URL: http://llvm.org/viewvc/llvm-project?rev=40130&view=rev
Log:
Simplify the logic for setVolatile.
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=40130&r1=40129&r2=40130&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Fri Jul 20 18:14:50 2007
@@ -253,7 +253,7 @@
/// 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 @@
/// 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.
More information about the llvm-commits
mailing list