diff options
Diffstat (limited to 'passes/memory')
-rw-r--r-- | passes/memory/memory_share.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/memory/memory_share.cc b/passes/memory/memory_share.cc index 3d241433a..1845d56ea 100644 --- a/passes/memory/memory_share.cc +++ b/passes/memory/memory_share.cc @@ -125,6 +125,9 @@ struct MemoryShareWorker created_conditions++; } + if (terms.size() == 0) + terms = State::S1; + if (terms.size() > 1) terms = module->ReduceAnd(NEW_ID, terms); |