From ad577a5c1dc325456c495f50e024711273bdf434 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 17 Sep 2013 00:15:33 +0000 Subject: [PATCH] simplify expression git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190826 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineInstr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index c67c729b77e..e1349a6df83 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(); } -- 2.34.1