mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Simplify the logic for setVolatile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e54953c5f
commit
b1d1f7a035
@ -253,7 +253,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) {
|
void setVolatile(bool V) {
|
||||||
SubclassData = (SubclassData & ~1) | ((V) ? 1 : 0);
|
SubclassData = (SubclassData & ~1) | V;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual LoadInst *clone() const;
|
virtual LoadInst *clone() const;
|
||||||
@ -321,7 +321,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) {
|
void setVolatile(bool V) {
|
||||||
SubclassData = (SubclassData & ~1) | ((V) ? 1 : 0);
|
SubclassData = (SubclassData & ~1) | V;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Transparently provide more efficient getOperand methods.
|
/// Transparently provide more efficient getOperand methods.
|
||||||
|
Loading…
Reference in New Issue
Block a user