[llvm] r190826 - simplify expression

Adrian Prantl aprantl at apple.com
Mon Sep 16 17:15:34 PDT 2013


Author: adrian
Date: Mon Sep 16 19:15:33 2013
New Revision: 190826

URL: http://llvm.org/viewvc/llvm-project?rev=190826&view=rev
Log:
simplify expression

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineInstr.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstr.h?rev=190826&r1=190825&r2=190826&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstr.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstr.h Mon Sep 16 19:15:33 2013
@@ -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();
   }





More information about the llvm-commits mailing list