aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/DebugInfo.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 9f269414c7..9623ce29c2 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -52,7 +52,7 @@ namespace llvm {
template <typename DescTy>
DescTy getFieldAs(unsigned Elt) const {
- return DescTy(getDescriptorField(Elt).getNode());
+ return DescTy(getDescriptorField(Elt));
}
GlobalVariable *getGlobalVariableField(unsigned Elt) const;
@@ -63,7 +63,6 @@ namespace llvm {
bool Verify() const { return DbgNode != 0; }
- MDNode *getNode() const { return DbgNode; }
operator MDNode *() const { return DbgNode; }
MDNode *operator ->() const { return DbgNode; }