summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 35b917f9c40..58bd1634dae 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -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));
}
}
OpenPOWER on IntegriCloud