simplify expression

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adrian Prantl
2013-09-17 00:15:33 +00:00
parent 3d6ce062dc
commit ad577a5c1d

View File

@@ -640,7 +640,7 @@ public:
/// A DBG_VALUE is indirect iff the first operand is a register and /// A DBG_VALUE is indirect iff the first operand is a register and
/// the second operand is an immediate. /// the second operand is an immediate.
bool isIndirectDebugValue() const { bool isIndirectDebugValue() const {
return (getOpcode() == TargetOpcode::DBG_VALUE) return isDebugValue()
&& getOperand(0).isReg() && getOperand(0).isReg()
&& getOperand(1).isImm(); && getOperand(1).isImm();
} }