1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

DebugInfo: Fix Kaleidoscope Ch. 8 after r235327

Pretty sure the build was broken by r235327 (I updated it there, but
apparently didn't check if it compiled).

llvm-svn: 235353
This commit is contained in:
Duncan P. N. Exon Smith 2015-04-20 21:29:44 +00:00
parent a8e8f5d3ae
commit 44748b8d14

View File

@ -831,7 +831,7 @@ void DebugInfo::emitLocation(ExprAST *AST) {
if (LexicalBlocks.empty())
Scope = TheCU;
else
Scope = *LexicalBlocks.back();
Scope = LexicalBlocks.back();
Builder.SetCurrentDebugLocation(
DebugLoc::get(AST->getLine(), AST->getCol(), Scope));
}
@ -1274,7 +1274,7 @@ Function *FunctionAST::Codegen() {
return 0;
// Push the current scope.
KSDbgInfo.LexicalBlocks.push_back(&KSDbgInfo.FnScopeMap[Proto]);
KSDbgInfo.LexicalBlocks.push_back(KSDbgInfo.FnScopeMap[Proto]);
// Unset the location for the prologue emission (leading instructions with no
// location in a function are considered part of the prologue and the debugger