mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
The expression "SubclassData = (SubclassData & ~1) | (V) ? 1 : 0;" does not do what
was intended! | has higher precedence than ?. Caught by Visual Studio. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36302 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2330e4d4c4
commit
68c773cf19
@ -246,7 +246,7 @@ public:
|
|||||||
|
|
||||||
/// setVolatile - Specify whether this is a volatile load or not.
|
/// setVolatile - Specify whether this is a volatile load or not.
|
||||||
///
|
///
|
||||||
void setVolatile(bool V) { SubclassData = (SubclassData & ~1) | (V) ? 1 : 0; }
|
void setVolatile(bool V) { SubclassData = (SubclassData & ~1) | unsigned(V); }
|
||||||
|
|
||||||
virtual LoadInst *clone() const;
|
virtual LoadInst *clone() const;
|
||||||
|
|
||||||
@ -311,7 +311,7 @@ public:
|
|||||||
|
|
||||||
/// setVolatile - Specify whether this is a volatile load or not.
|
/// setVolatile - Specify whether this is a volatile load or not.
|
||||||
///
|
///
|
||||||
void setVolatile(bool V) { SubclassData = (SubclassData & ~1) | (V) ? 1 : 0; }
|
void setVolatile(bool V) { SubclassData = (SubclassData & ~1) | unsigned(V); }
|
||||||
|
|
||||||
/// Transparently provide more efficient getOperand methods.
|
/// Transparently provide more efficient getOperand methods.
|
||||||
Value *getOperand(unsigned i) const {
|
Value *getOperand(unsigned i) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user