summaryrefslogtreecommitdiff
path: root/src/abi/js.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-05-01 14:48:41 -0700
committerGitHub <noreply@github.com>2019-05-01 14:48:41 -0700
commit2bd3758a22131cfd6925b3fd995657b211095c90 (patch)
tree2a38a48ab68c00ed1b55e885f86014bbdda92ff2 /src/abi/js.h
parent73709b4da08d285c2237c8c23a54ba53274c0c7f (diff)
downloadbinaryen-2bd3758a22131cfd6925b3fd995657b211095c90.tar.gz
binaryen-2bd3758a22131cfd6925b3fd995657b211095c90.tar.bz2
binaryen-2bd3758a22131cfd6925b3fd995657b211095c90.zip
clang-tidy braces changes (#2075)
Applies the changes in #2065, and temprarily disables the hook since it's too slow to run on a change this large. We should re-enable it in a later commit.
Diffstat (limited to 'src/abi/js.h')
-rw-r--r--src/abi/js.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/abi/js.h b/src/abi/js.h
index 8391346c8..52ca5657f 100644
--- a/src/abi/js.h
+++ b/src/abi/js.h
@@ -54,10 +54,12 @@ ensureScratchMemoryHelpers(Module* wasm,
cashew::IString specific = cashew::IString()) {
auto ensureImport =
[&](Name name, const std::vector<Type> params, Type result) {
- if (wasm->getFunctionOrNull(name))
+ if (wasm->getFunctionOrNull(name)) {
return;
- if (specific.is() && name != specific)
+ }
+ if (specific.is() && name != specific) {
return;
+ }
auto func = make_unique<Function>();
func->name = name;
func->params = params;