Skip to content

Commit

Permalink
Follow-up to r205973: change the return type to const MDNode*.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205974 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
adrian-prantl committed Apr 10, 2014
1 parent b7b9bf4 commit cccac61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/llvm/CodeGen/MachineInstr.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,9 @@ class MachineInstr : public ilist_node<MachineInstr> {

/// 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
Expand Down

0 comments on commit cccac61

Please sign in to comment.