mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When we're dumping constraints for an expression in the REPL, don't
execute that expression. Swift SVN r2717
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user