When we're dumping constraints for an expression in the REPL, don't

execute that expression.


Swift SVN r2717
This commit is contained in:
Doug Gregor
2012-08-23 00:27:42 +00:00
parent 2583f419c9
commit 5999348a5a

View File

@@ -423,8 +423,10 @@ void swift::REPL(ASTContext &Context) {
CurBufferOffset,
CurBufferEndOffset,
dumpConstraints);
dumpConstraints = false;
if (dumpConstraints) {
dumpConstraints = false;
ShouldRun = false;
}
if (Context.hadError()) {
Context.Diags.resetHadAnyError();