diff options
author | Alon Zakai <azakai@google.com> | 2021-08-03 08:09:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 08:09:14 -0700 |
commit | d96b0d64b65a1424d55f3eb228b16df5f318e5ac (patch) | |
tree | 8f3ee7bb095adc2a33893f0353455f5073a760b4 | |
parent | 718eb2e3e6d3555af1e077e4115a46e968e4fef4 (diff) | |
download | binaryen-d96b0d64b65a1424d55f3eb228b16df5f318e5ac.tar.gz binaryen-d96b0d64b65a1424d55f3eb228b16df5f318e5ac.tar.bz2 binaryen-d96b0d64b65a1424d55f3eb228b16df5f318e5ac.zip |
Avoid an unnecessary copy in Directize (#4048)
-rw-r--r-- | src/passes/Directize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Directize.cpp b/src/passes/Directize.cpp index 086cc88a5..d8b7f82d1 100644 --- a/src/passes/Directize.cpp +++ b/src/passes/Directize.cpp @@ -94,7 +94,7 @@ struct FunctionDirectizer : public WalkerPass<PostWalker<FunctionDirectizer>> { } private: - const std::unordered_map<Name, TableUtils::FlatTable> tables; + const std::unordered_map<Name, TableUtils::FlatTable>& tables; bool changedTypes = false; |