From 593f10ed81ba0518bb7231618802d6fb3a94d4ae Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 18 Jul 2013 00:47:12 +0000 Subject: Fix a compile error caught by bb-chapuni. llvm-svn: 186555 --- clang/lib/CodeGen/CGDebugInfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp') 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)); } } -- cgit v1.2.3