summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
authorKeith Winstein <keithw@cs.stanford.edu>2023-05-09 12:46:45 -0700
committerGitHub <noreply@github.com>2023-05-09 19:46:45 +0000
commit7ff04217d72d5c9528c9f167913c52f083ef1948 (patch)
tree27fbc2b124299eb71c5d6b28748b09a4eedee870 /src/binary-reader-ir.cc
parent44a132de57f5c0689402c97b36a52c4d6802c2e1 (diff)
downloadwabt-7ff04217d72d5c9528c9f167913c52f083ef1948.tar.gz
wabt-7ff04217d72d5c9528c9f167913c52f083ef1948.tar.bz2
wabt-7ff04217d72d5c9528c9f167913c52f083ef1948.zip
BinaryReaderIR: silence clang 14 warning (NFC) (#2232)
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r--src/binary-reader-ir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc
index 6bf35ce3..5736e302 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -530,7 +530,7 @@ Result BinaryReaderIR::OnFuncType(Index index,
module_->features_used.simd |=
std::any_of(func_type->sig.param_types.begin(),
func_type->sig.param_types.end(),
- [](auto x) { return x == Type::V128; }) |
+ [](auto x) { return x == Type::V128; }) ||
std::any_of(func_type->sig.result_types.begin(),
func_type->sig.result_types.end(),
[](auto x) { return x == Type::V128; });