Use public accessors on the scope that is returned.
authorEric Christopher <echristo@apple.com>
Tue, 11 Oct 2011 23:19:35 +0000 (23:19 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 11 Oct 2011 23:19:35 +0000 (23:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141739 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DebugInfo.h

index d2bb29bd71274fae7b447fc31d9d301aed3ef4df..402975b76c2aa5eace859040310aa2ff78e97250 100644 (file)
@@ -708,8 +708,8 @@ namespace llvm {
   public:
     explicit DILexicalBlockFile(const MDNode *N = 0) : DIScope(N) {}
     DIScope getContext() const { return getScope().getFieldAs<DIScope>(1); }
-    unsigned getLineNumber() const { return getScope().getUnsignedField(2); }
-    unsigned getColumnNumber() const { return getScope().getUnsignedField(3); }
+    unsigned getLineNumber() const { return getScope().getLineNumber(); }
+    unsigned getColumnNumber() const { return getScope().getColumnNumber(); }
     StringRef getDirectory() const {
       StringRef dir = getFieldAs<DIFile>(2).getDirectory();
       return !dir.empty() ? dir : getContext().getDirectory();