forked from OSchip/llvm-project
Fix bug in Toy tutorial where IR emission stopped after any `print`
-- PiperOrigin-RevId: 242407970
This commit is contained in:
parent
7286d43920
commit
89d5d36964
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue