diff --git a/lld/test/wasm/signature-mismatch-export.ll b/lld/test/wasm/signature-mismatch-export.ll --- a/lld/test/wasm/signature-mismatch-export.ll +++ b/lld/test/wasm/signature-mismatch-export.ll @@ -22,7 +22,7 @@ ; CHECK-NEXT: Name: name ; CHECK-NEXT: FunctionNames: ; CHECK-NEXT: - Index: 0 -; CHECK-NEXT: Name: 'unreachable:ret32' +; CHECK-NEXT: Name: 'signature_mismatch:ret32' ; CHECK-NEXT: - Index: 1 ; CHECK-NEXT: Name: _start ; CHECK-NEXT: - Index: 2 diff --git a/lld/test/wasm/signature-mismatch.ll b/lld/test/wasm/signature-mismatch.ll --- a/lld/test/wasm/signature-mismatch.ll +++ b/lld/test/wasm/signature-mismatch.ll @@ -40,7 +40,7 @@ ; YAML-NEXT: Name: name ; YAML-NEXT: FunctionNames: ; YAML-NEXT: - Index: 0 -; YAML-NEXT: Name: 'unreachable:ret32' +; YAML-NEXT: Name: 'signature_mismatch:ret32' ; YAML-NEXT: - Index: 1 ; YAML-NEXT: Name: _start ; YAML-NEXT: - Index: 2 diff --git a/lld/wasm/SymbolTable.cpp b/lld/wasm/SymbolTable.cpp --- a/lld/wasm/SymbolTable.cpp +++ b/lld/wasm/SymbolTable.cpp @@ -719,7 +719,7 @@ if (symbol != defined) { auto *f = cast(symbol); reportFunctionSignatureMismatch(symName, f, defined, false); - StringRef debugName = saver.save("unreachable:" + toString(*f)); + StringRef debugName = saver.save("signature_mismatch:" + toString(*f)); replaceWithUnreachable(f, *f->signature, debugName); } }