simplify expression
[oota-llvm.git] / include / llvm / CodeGen / MachineInstr.h
index c67c729b77e96e48618ecb83819c8dded3bbbb29..e1349a6df83bc87bae5aeec4d464ae46d5dee116 100644 (file)
@@ -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();
   }