From: Adrian Prantl Date: Tue, 17 Sep 2013 00:15:33 +0000 (+0000) Subject: simplify expression X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ad577a5c1dc325456c495f50e024711273bdf434;p=oota-llvm.git simplify expression git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190826 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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(); }