X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FKaleidoscope%2FChapter8%2Ftoy.cpp;h=eb16516b6d23c57b87f9bea115dbcfbcaacc906c;hb=6219380952f0cedef590175f858b683bbf8db971;hp=7b714cac7c630f94db071aaa73c85c8274e68685;hpb=92b3bf95a1846e16bb85929544747b1c074b2fab;p=oota-llvm.git diff --git a/examples/Kaleidoscope/Chapter8/toy.cpp b/examples/Kaleidoscope/Chapter8/toy.cpp index 7b714cac7c6..eb16516b6d2 100644 --- a/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/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