summaryrefslogtreecommitdiff
path: root/src/ir/equivalent_sets.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-04-26 16:59:41 -0700
committerGitHub <noreply@github.com>2019-04-26 16:59:41 -0700
commitdb9124f1de0478dcac525009b6f1589b44a7edd8 (patch)
treefa26395a0f6cca53cf5cb6e10189f989c5bfa847 /src/ir/equivalent_sets.h
parent87636dccd404a340d75acb1d96301581343f29ca (diff)
downloadbinaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.gz
binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.bz2
binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.zip
Apply format changes from #2048 (#2059)
Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
Diffstat (limited to 'src/ir/equivalent_sets.h')
-rw-r--r--src/ir/equivalent_sets.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ir/equivalent_sets.h b/src/ir/equivalent_sets.h
index dc3e348d2..fc4b1db3d 100644
--- a/src/ir/equivalent_sets.h
+++ b/src/ir/equivalent_sets.h
@@ -31,9 +31,7 @@ struct EquivalentSets {
std::unordered_map<Index, std::shared_ptr<Set>> indexSets;
// Clears the state completely, removing all equivalences.
- void clear() {
- indexSets.clear();
- }
+ void clear() { indexSets.clear(); }
// Resets an index, removing any equivalences between it and others.
void reset(Index index) {
@@ -69,7 +67,8 @@ struct EquivalentSets {
// Checks whether two indexes contain the same data.
bool check(Index a, Index b) {
- if (a == b) return true;
+ if (a == b)
+ return true;
if (auto* set = getEquivalents(a)) {
if (set->find(b) != set->end()) {
return true;
@@ -91,4 +90,3 @@ struct EquivalentSets {
} // namespace wasm
#endif // wasm_ir_equivalent_sets_h
-