Issue 175789
Summary Using `__funcref` crashes Clang
Labels clang
Assignees
Reporter geraintluff
    While trying to get Clang to export a function to a `.wasm` module, I added `__funcref`:

```cpp
extern "C" {
	__funcref
	HostedWclap * makeHosted(Instance *instance) {
		return HostedWclap::create(instance);
	}
	//...
}
```

It crashed, and asked me to create this report/issue.

[stack-dump.txt](https://github.com/user-attachments/files/24594927/stack-dump.txt)

[host-20b392.sh](https://github.com/user-attachments/files/24594997/host-20b392.sh)

[host-20b392.cpp.gz](https://github.com/user-attachments/files/24595017/host-20b392.cpp.gz)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to