[clang] [clang-repl] Handle mllvm args for clang-repl before calling executeAction (PR #197133)

Anutosh Bhat via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 6 07:36:55 PDT 2026


================
@@ -505,6 +508,11 @@ TEST_F(InterpreterTest, ValueSetRawBitsCopiesByteCount) {
 // Earlier the move ctor called Release() on the just-moved-into storage,
 // double-releasing on the next read.
 TEST_F(InterpreterTest, ValueMoveSemantics) {
+  // FIXME: Emscripten cannot resolve MoveT's destructor symbol
+  // `_ZN5MoveTD2Ev` from the incrementally loaded Wasm side module.
+#ifdef __EMSCRIPTEN__
+  GTEST_SKIP() << "Unresolved destructor symbol: _ZN5MoveTD2Ev";
+#endif
----------------
anutosh491 wrote:

Fails with the following
```
dlsym failed for symbol: _ZN5MoveTD2Ev
wasm://wasm/163cc3f6:1


RuntimeError: null function or function signature mismatch
    at wasm://wasm/163cc3f6:wasm-function[1316]:0x491dc5
    at wasm://wasm/163cc3f6:wasm-function[250]:0x428198
    at wasm://wasm/163cc3f6:wasm-function[682]:0x450c6e
    at wasm://wasm/163cc3f6:wasm-function[693]:0x4527be
    at wasm://wasm/163cc3f6:wasm-function[701]:0x4530f6
    at wasm://wasm/163cc3f6:wasm-function[826]:0x465674
    at wasm://wasm/163cc3f6:wasm-function[825]:0x465042
    at wasm://wasm/163cc3f6:wasm-function[389]:0x435a1e
    at callMain (/private/tmp/clang-repl-wasm-test.7NOhv3/tools/clang/unittests/Interpreter/ClangReplInterpreterTests.js:29933:15)
    at doRun (/private/tmp/clang-repl-wasm-test.7NOhv3/tools/clang/unittests/Interpreter/ClangReplInterpreterTests.js:29986:24)

Node.js v24.14.1
```

Deserves a separate PR (that I can make soon) and added a fixme ! 

https://github.com/llvm/llvm-project/pull/197133


More information about the cfe-commits mailing list