diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-01-10 01:29:42 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-01-10 01:29:42 +0000 |
commit | b11f05043465bceae4853a3bd2c01d7d664cc5e3 (patch) | |
tree | 14c7a887a8643618f21570b4a362cf5684b415d2 /include/llvm/CodeGen/MachineInstr.h | |
parent | 86441169da23959c81d8648c3dfdc7a0bb8d2225 (diff) | |
download | external_llvm-b11f05043465bceae4853a3bd2c01d7d664cc5e3.zip external_llvm-b11f05043465bceae4853a3bd2c01d7d664cc5e3.tar.gz external_llvm-b11f05043465bceae4853a3bd2c01d7d664cc5e3.tar.bz2 |
Support headerless bundles in MachineInstr::hasProperty().
This function can still work without a BUNDLE header instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 3c7611f..3d2c617 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -314,7 +314,7 @@ public: /// instruction bundles. bool hasProperty(unsigned MCFlag, QueryType Type = AnyInBundle) const { // Inline the fast path. - if (Type == IgnoreBundle || !isBundle()) + if (Type == IgnoreBundle || !isBundled()) return getDesc().getFlags() & (1 << MCFlag); // If we have a bundle, take the slow path. |