X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=include%2Fllvm%2FCodeGen%2FMachineInstr.h;h=9097150ab6260f4d49ef18f5e61c7a2056d2be46;hb=2c3e0051c31c3f5b2328b447eadf1cf9c4427442;hp=333dcdb3effa6dc0b37b8d0733b997cf22ee4601;hpb=e1bc145815f4334641be19f1c45ecf85d25b6e5a;p=android-x86%2Fexternal-llvm.git diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 333dcdb3eff..9097150ab62 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -248,9 +248,7 @@ public: /// this DBG_VALUE instruction. DIVariable getDebugVariable() const { assert(isDebugValue() && "not a DBG_VALUE"); - DIVariable Var(getOperand(2).getMetadata()); - assert(Var.Verify() && "not a DIVariable"); - return Var; + return cast(getOperand(2).getMetadata()); } /// \brief Return the complex address expression referenced by