r186555 - Fix a compile error caught by bb-chapuni.
Adrian Prantl
aprantl at apple.com
Wed Jul 17 17:47:12 PDT 2013
Author: adrian
Date: Wed Jul 17 19:47:12 2013
New Revision: 186555
URL: http://llvm.org/viewvc/llvm-project?rev=186555&view=rev
Log:
Fix a compile error caught by bb-chapuni.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=186555&r1=186554&r2=186555&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Wed Jul 17 19:47:12 2013
@@ -76,8 +76,9 @@ BuiltinLocation::BuiltinLocation(CodeGen
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));
}
}
More information about the cfe-commits
mailing list