mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
MCInstrDesc: this fixes an issue setting/getting member Flags, which
is an uint64_t. However, getter function getFlags returned an unsigned, and in function hasProperty (1 << MCFlag) was used instead of (1ULL << MCFlag). llvm-svn: 281483
This commit is contained in:
parent
55a7d3e6b5
commit
6b2a89b146
@ -391,10 +391,10 @@ public:
|
||||
bool hasProperty(unsigned MCFlag, QueryType Type = AnyInBundle) const {
|
||||
// Inline the fast path for unbundled or bundle-internal instructions.
|
||||
if (Type == IgnoreBundle || !isBundled() || isBundledWithPred())
|
||||
return getDesc().getFlags() & (1 << MCFlag);
|
||||
return getDesc().getFlags() & (1ULL << MCFlag);
|
||||
|
||||
// If this is the first instruction in a bundle, take the slow path.
|
||||
return hasPropertyInBundle(1 << MCFlag, Type);
|
||||
return hasPropertyInBundle(1ULL << MCFlag, Type);
|
||||
}
|
||||
|
||||
/// Return true if this instruction can have a variable number of operands.
|
||||
|
@ -216,7 +216,7 @@ public:
|
||||
unsigned getNumDefs() const { return NumDefs; }
|
||||
|
||||
/// \brief Return flags of this instruction.
|
||||
unsigned getFlags() const { return Flags; }
|
||||
uint64_t getFlags() const { return Flags; }
|
||||
|
||||
/// \brief Return true if this instruction can have a variable number of
|
||||
/// operands. In this case, the variable operands will be after the normal
|
||||
|
Loading…
Reference in New Issue
Block a user