summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-20 21:29:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-20 21:29:44 +0000
commit3b6f1d57ea15f9cfe3ae62a17f7da6eb118def83 (patch)
tree44be2bcb29e4ec6c18190e9dd2c252745eb73ff7 /llvm/examples/Kaleidoscope/Chapter8/toy.cpp
parentc62468859a82780bcb58c4dc67d92bbe3f7e124c (diff)
downloadbcm5719-llvm-3b6f1d57ea15f9cfe3ae62a17f7da6eb118def83.tar.gz
bcm5719-llvm-3b6f1d57ea15f9cfe3ae62a17f7da6eb118def83.zip
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
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter8/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter8/toy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
index 7b714cac7c6..eb16516b6d2 100644
--- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
@@ -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
OpenPOWER on IntegriCloud