diff options
author | Sam Clegg <sbc@chromium.org> | 2024-08-09 14:49:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-09 14:49:32 -0700 |
commit | e729e012c50eb118be09f6a8005f0c9090fff3a0 (patch) | |
tree | 355c340c79066ae31c9dd2919d4ada541eaab4bf | |
parent | 3386e642c76028438fc783bf97089115ea9a900f (diff) | |
download | binaryen-e729e012c50eb118be09f6a8005f0c9090fff3a0.tar.gz binaryen-e729e012c50eb118be09f6a8005f0c9090fff3a0.tar.bz2 binaryen-e729e012c50eb118be09f6a8005f0c9090fff3a0.zip |
Set hasExplicitName for thunks generated in FuncCastEmulation. NFC (#6826)
Without this all the newly created thunks lack names in the name
section.
-rw-r--r-- | src/passes/FuncCastEmulation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp index 972cf719c..49ef2fd7a 100644 --- a/src/passes/FuncCastEmulation.cpp +++ b/src/passes/FuncCastEmulation.cpp @@ -206,6 +206,7 @@ private: Signature(Type(thunkParams), Type::i64), {}, // no vars toABI(call, module)); + thunkFunc->hasExplicitName = true; module->addFunction(std::move(thunkFunc)); return thunk; } |