The WebAssembly backend needs to know the signatures of all runtime libcall functions. This adds the signature for __stack_chk_fail which was previously missing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I think I may have seen a crash recently related to this.
Can we add a test?
Also, IIRC the crash the is reported doesn't include the symbol name, which would be useful in the future perhaps?
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | ||
---|---|---|
846 | Wouldn't it be nicer to do something like: llvm_unreachable("unexpected runtime library name: " + Name); |
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | ||
---|---|---|
846 | It's a little more involved in that because all the types are char* and the argument is char*, but it's doable. Done, in r359509. |
Wouldn't it be nicer to do something like: llvm_unreachable("unexpected runtime library name: " + Name);