llc: /home/npopov/repos/llvm-project/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:3564: bool (anonymous namespace)::X86DAGToDAGISel::checkTCRetEnoughRegs(SDNode *) const: Assertion `!getTargetMachine().isPositionIndependent()' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: build/bin/llc -mtriple=i686-pc-windows-msvc -relocation-model=pic
1. Running pass 'Function Pass Manager' on module '<stdin>'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
#0 0x00000000088cc70b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (build/bin/llc+0x88cc70b)
#1 0x00000000088c95d5 llvm::sys::RunSignalHandlers() (build/bin/llc+0x88c95d5)
#2 0x00000000088cd4eb SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007f844e620fb0 __restore_rt (/lib64/libc.so.6+0x19fb0)
#4 0x00007f844e67bccc __pthread_kill_implementation (/lib64/libc.so.6+0x74ccc)
#5 0x00007f844e620e8e gsignal (/lib64/libc.so.6+0x19e8e)
#6 0x00007f844e6087b3 abort (/lib64/libc.so.6+0x17b3)
#7 0x00007f844e609804 _IO_peekc_locked.cold (/lib64/libc.so.6+0x2804)
#8 0x00007f844e618d45 __assert_fail (/lib64/libc.so.6+0x11d45)
#9 0x0000000006bdc61f (build/bin/llc+0x6bdc61f)
#10 0x000000000869aa83 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int, unsigned char const*) (build/bin/llc+0x869aa83)
#11 0x0000000006bd6357 (anonymous namespace)::X86DAGToDAGISel::Select(llvm::SDNode*) X86ISelDAGToDAG.cpp:0:0
Presumably introduced by #137643.