Fix scheduling regression (#53)

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2023-11-27 10:02:37 -08:00
committed by GitHub
parent ef36d9bed5
commit 639ba72c90
3 changed files with 62 additions and 1 deletions
+3 -1
View File
@@ -162,6 +162,8 @@ pub fn schedule<Str: Clone + std::cmp::Ord + std::fmt::Debug>(
(stmt_scheduled, reprocess_var)
};
process_var(empty.clone());
let mut done = false;
while !done {
done = true;
@@ -840,7 +842,7 @@ impl Analyzer {
)?;
self.process_comprs(&comprs[..], scope, first_use, &mut used_vars)?;
definitions.push(Definition {
var: expr.span().source_str().clone(),
var: expr.span().source_str().clone_empty(),
used_vars,
});
Ok(())