Make this use a public accessor too.
authorEric Christopher <echristo@apple.com>
Wed, 12 Oct 2011 00:38:05 +0000 (00:38 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 12 Oct 2011 00:38:05 +0000 (00:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141752 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DebugInfo.h

index 402975b76c2aa5eace859040310aa2ff78e97250..9a53c4dadba0fb41baffba48578b424da1a3ecd3 100644 (file)
@@ -707,7 +707,7 @@ namespace llvm {
   class DILexicalBlockFile : public DIScope {
   public:
     explicit DILexicalBlockFile(const MDNode *N = 0) : DIScope(N) {}
-    DIScope getContext() const { return getScope().getFieldAs<DIScope>(1); }
+    DIScope getContext() const { return getScope().getContext(); }
     unsigned getLineNumber() const { return getScope().getLineNumber(); }
     unsigned getColumnNumber() const { return getScope().getColumnNumber(); }
     StringRef getDirectory() const {