summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-10-04 10:35:37 -0700
committerGitHub <noreply@github.com>2021-10-04 10:35:37 -0700
commit9d6067dfc0adfb45c0e0b650cd74c64d3748d92b (patch)
treefa848c0f92183eaf2b616dd5c2adbec9afb2b849 /src
parente43f0ffb2469bf3dc1ca74d6bb1f1ad2d04142a1 (diff)
downloadbinaryen-9d6067dfc0adfb45c0e0b650cd74c64d3748d92b.tar.gz
binaryen-9d6067dfc0adfb45c0e0b650cd74c64d3748d92b.tar.bz2
binaryen-9d6067dfc0adfb45c0e0b650cd74c64d3748d92b.zip
Fix Emscripten build by changing `|` to `||` (#4205)
Emscripten must have rolled in a new warning about using `|` on booleans.
Diffstat (limited to 'src')
-rw-r--r--src/passes/CoalesceLocals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/CoalesceLocals.cpp b/src/passes/CoalesceLocals.cpp
index c58a48834..d62981d2c 100644
--- a/src/passes/CoalesceLocals.cpp
+++ b/src/passes/CoalesceLocals.cpp
@@ -299,7 +299,7 @@ void CoalesceLocals::pickIndicesFromOrder(std::vector<Index>& order,
// go in the order, we only need to update for those we will see later
auto j = order[k];
newInterferences[found * numLocals + j] =
- newInterferences[found * numLocals + j] | interferes(actual, j);
+ newInterferences[found * numLocals + j] || interferes(actual, j);
newCopies[found * numLocals + j] += getCopies(actual, j);
}
}