From dbfbaf6730da25dfcd939639b034260adcf6e031 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 10 Apr 2014 17:50:30 +0000 Subject: [PATCH] Follow-up to r205973: change the return type to const MDNode*. llvm-svn: 205974 --- llvm/include/llvm/CodeGen/MachineInstr.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index 9e815623a780..cb85ca897871 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/include/llvm/CodeGen/MachineInstr.h @@ -246,10 +246,9 @@ public: /// getDebugVariable() - Return the debug variable referenced by /// this DBG_VALUE instruction. - DIVariable getDebugVariable() const { + const MDNode *getDebugVariable() const { assert(isDebugValue() && "not a DBG_VALUE"); - const MDNode *Var = getOperand(getNumOperands() - 1).getMetadata(); - return DIVariable(Var); + return getOperand(getNumOperands() - 1).getMetadata(); } /// emitError - Emit an error referring to the source location of this -- GitLab