Fix bug in Toy tutorial where IR emission stopped after any `print`

--

PiperOrigin-RevId: 242407970
This commit is contained in:
Mehdi Amini 2019-04-07 23:30:58 -07:00 committed by Mehdi Amini
parent 7286d43920
commit 89d5d36964
3 changed files with 3 additions and 3 deletions

View File

@ -463,7 +463,7 @@ private:
if (auto *print = dyn_cast<PrintExprAST>(expr.get())) {
if (!mlirGen(*print))
return false;
return true;
continue;
}
// Generic expression dispatch codegen.
if (!mlirGen(*expr))

View File

@ -444,7 +444,7 @@ private:
if (auto *print = dyn_cast<PrintExprAST>(expr.get())) {
if (!mlirGen(*print))
return false;
return true;
continue;
}
// Generic expression dispatch codegen.
if (!mlirGen(*expr))

View File

@ -444,7 +444,7 @@ private:
if (auto *print = dyn_cast<PrintExprAST>(expr.get())) {
if (!mlirGen(*print))
return false;
return true;
continue;
}
// Generic expression dispatch codegen.
if (!mlirGen(*expr))