diff options
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 58bd1634dae..ac6263666a2 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -76,8 +76,9 @@ BuiltinLocation::BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B) DI->EmitLocation(Builder, SavedLoc); 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(); + llvm::DIDescriptor Scope = DI->LexicalBlockStack.empty() ? + llvm::DIDescriptor(DI->TheCU) : + llvm::DIDescriptor(DI->LexicalBlockStack.back()); Builder.SetCurrentDebugLocation(llvm::DebugLoc::get(0, 0, Scope)); } } |