llvm.org GIT mirror llvm / 6219380
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235353 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan P. N. Exon Smith 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
830830 if (LexicalBlocks.empty())
831831 Scope = TheCU;
832832 else
833 Scope = *LexicalBlocks.back();
833 Scope = LexicalBlocks.back();
834834 Builder.SetCurrentDebugLocation(
835835 DebugLoc::get(AST->getLine(), AST->getCol(), Scope));
836836 }
12731273 return 0;
12741274
12751275 // Push the current scope.
1276 KSDbgInfo.LexicalBlocks.push_back(&KSDbgInfo.FnScopeMap[Proto]);
1276 KSDbgInfo.LexicalBlocks.push_back(KSDbgInfo.FnScopeMap[Proto]);
12771277
12781278 // Unset the location for the prologue emission (leading instructions with no
12791279 // location in a function are considered part of the prologue and the debugger