Open
Description
Bugzilla Link | 48088 |
Version | 11.0 |
OS | Windows NT |
CC | @RIscRIpt |
Extended Description
For more info see FIXME in ARM64EmitUnwindInfo (llvm/lib/MC/MCWin64EH.cpp)
https://github.com/llvm/llvm-project/blob/f69e090/llvm/lib/MC/MCWin64EH.cpp#L918-L943
Reproducible example:
void test() { __asm__(".balign 1"); }
Compiling with:
clang.exe --target=x86_64-pc-windows -c test.cpp
Gives no error, however, compiling with
clang.exe --target=aarch64-pc-windows -c test.cpp
Crashes:
fatal error: error in backend: Failed to evaluate function length in SEH unwind info
Stack dump:
0. Program arguments: clang.exe --target=aarch64-pc-windows -c test.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'test.cpp'.
4. Running pass 'AArch64 Assembly Printer' on function '@"?test@@YAXXZ"'
Related bug report: #40926