summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-07-18 00:47:12 +0000
committerAdrian Prantl <aprantl@apple.com>2013-07-18 00:47:12 +0000
commit593f10ed81ba0518bb7231618802d6fb3a94d4ae (patch)
treefcef433660a86f7c04384af362fae8eb1e4cd5dd /clang/lib/CodeGen/CGDebugInfo.cpp
parent9aab9002a6389d77727b5e9d55839d0bc11076da (diff)
downloadbcm5719-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.cpp5
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));
}
}
OpenPOWER on IntegriCloud