diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-07-18 00:47:12 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-07-18 00:47:12 +0000 |
commit | 593f10ed81ba0518bb7231618802d6fb3a94d4ae (patch) | |
tree | fcef433660a86f7c04384af362fae8eb1e4cd5dd /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 9aab9002a6389d77727b5e9d55839d0bc11076da (diff) | |
download | bcm5719-llvm-593f10ed81ba0518bb7231618802d6fb3a94d4ae.tar.gz bcm5719-llvm-593f10ed81ba0518bb7231618802d6fb3a94d4ae.zip |
Fix a compile error caught by bb-chapuni.
llvm-svn: 186555
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)); } } |