summaryrefslogtreecommitdiff
path: root/src/ir/possible-contents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/possible-contents.cpp')
-rw-r--r--src/ir/possible-contents.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ir/possible-contents.cpp b/src/ir/possible-contents.cpp
index c80ada95c..d004ef70e 100644
--- a/src/ir/possible-contents.cpp
+++ b/src/ir/possible-contents.cpp
@@ -2122,7 +2122,10 @@ Flower::Flower(Module& wasm, const PassOptions& options)
// The merged roots. (Note that all other forms of merged data are declared at
// the class level, since we need them during the flow, but the roots are only
// needed to start the flow, so we can declare them here.)
- std::unordered_map<Location, PossibleContents> roots;
+ //
+ // This must be insert-ordered for the same reason as |workQueue| is, see
+ // above.
+ InsertOrderedMap<Location, PossibleContents> roots;
for (auto& [func, info] : analysis.map) {
for (auto& link : info.links) {