Skip to content

Commit

Permalink
Tell SIL not to try to lazily initialize DebuggerVars. The debugger
Browse files Browse the repository at this point in the history
handles this in its own way.

<rdar://problem/21011506>


Swift SVN r28779
  • Loading branch information
jimingham committed May 19, 2015
1 parent 1cf4974 commit d8e0683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/SILGen/SILGenGlobalVariable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ static bool isGlobalLazilyInitialized(VarDecl *var) {
if (var->hasClangNode())
return false;

if (var->isDebuggerVar())
return false;

// Top-level global variables in the main source file and in the REPL are not
// lazily initialized.
auto sourceFileContext = dyn_cast<SourceFile>(var->getDeclContext());
Expand Down

0 comments on commit d8e0683

Please sign in to comment.