simplify expression
authorAdrian Prantl <aprantl@apple.com>
Tue, 17 Sep 2013 00:15:33 +0000 (00:15 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 17 Sep 2013 00:15:33 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190826 91177308-0d34-0410-b5e6-96231b3b80d8

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();
   }