]> granicus.if.org Git - clang/commitdiff
Fix a compile error caught by bb-chapuni.
authorAdrian Prantl <aprantl@apple.com>
Thu, 18 Jul 2013 00:43:29 +0000 (00:43 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 18 Jul 2013 00:43:29 +0000 (00:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186554 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 35b917f9c40c5b93f6f396793f2267d0f1fb1d11..58bd1634dae4687a102fe6771c6c5fa6d161a86a 100644 (file)
@@ -77,7 +77,7 @@ BuiltinLocation::BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B)
     DI->CurLoc = SourceLocation();
     // Construct a location that has a valid scope, but no line info.
     llvm::MDNode *Scope = DI->LexicalBlockStack.empty() ?
-      DI->TheCU : DI->LexicalBlockStack.back();
+      DI->TheCU() : DI->LexicalBlockStack.back();
     Builder.SetCurrentDebugLocation(llvm::DebugLoc::get(0, 0, Scope));
   }
 }