diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-09-17 00:15:33 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-09-17 00:15:33 +0000 |
commit | ad577a5c1dc325456c495f50e024711273bdf434 (patch) | |
tree | eda5d8c2e74e1b873ec05f1ae2274a6e34fccefc /include/llvm/CodeGen/MachineInstr.h | |
parent | 3d6ce062dcab3970ba3ed5d8e768dde4c2b68116 (diff) | |
download | external_llvm-ad577a5c1dc325456c495f50e024711273bdf434.zip external_llvm-ad577a5c1dc325456c495f50e024711273bdf434.tar.gz external_llvm-ad577a5c1dc325456c495f50e024711273bdf434.tar.bz2 |
simplify expression
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190826 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 c67c729..e1349a6 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -640,7 +640,7 @@ public: /// A DBG_VALUE is indirect iff the first operand is a register and /// the second operand is an immediate. bool isIndirectDebugValue() const { - return (getOpcode() == TargetOpcode::DBG_VALUE) + return isDebugValue() && getOperand(0).isReg() && getOperand(1).isImm(); } |