crash: Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file DataLayout.h

Run:main-db12fc36f6-20261127-110859
Kind:crash
Category:Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file DataLayout.h
Occurrences:6 in 1 configs, 1 test files
Snippet from:scalable-vector-struct.ll @foo via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:https://godbolt.org/z/5TcYG6WY6 (llc-assertions-trunk, checked 2026-10-25 22:00 UTC): G reproduces

Snippet:

define i32 @foo({ { <vscale x 2 x i32>, <vscale x 2 x i32> }, i32 } %x, ptr %y, ptr %z) {
entry:
  br label %return

return:                                           ; preds = %entry
  %a = extractvalue { { <vscale x 2 x i32>, <vscale x 2 x i32> }, i32 } %x, 1
  %b = extractvalue { { <vscale x 2 x i32>, <vscale x 2 x i32> }, i32 } %x, 0, 0
  %c = extractvalue { { <vscale x 2 x i32>, <vscale x 2 x i32> }, i32 } %x, 0, 1
  store <vscale x 2 x i32> %b, ptr %y, align 8
  store <vscale x 2 x i32> %c, ptr %z, align 8
  ret i32 %a
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340llc: /root/llvm-project/llvm/include/llvm/IR/DataLayout.h:792: llvm::TypeSize llvm::DataLayout::getTypeSizeInBits(llvm::Type*) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' 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:
SelectionDAG (control)-mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel=003-

Reproduce:

llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/include/llvm/IR/DataLayout.h:795: TypeSize llvm::DataLayout::getTypeSizeInBits(Type *) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' 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: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'IRTranslator' on function '@foo'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llc       0x0000563848533c1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x0000563848530bf1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000056384853469b
3  libc.so.6 0x00007fee37445330
4  libc.so.6 0x00007fee3749ebec pthread_kill + 284
5  libc.so.6 0x00007fee3744527e gsignal + 30
6  libc.so.6 0x00007fee374288ff abort + 223
7  libc.so.6 0x00007fee3742881b
8  libc.so.6 0x00007fee3743b517
9  llc       0x0000563846ae0625
10 llc       0x0000563848e2338e llvm::IRTranslatorImpl::runOnMachineFunction(llvm::MachineFunction&, llvm::function_ref<llvm::GISelCSEInfo* ()>, bool, llvm::function_ref<llvm::AAResults* ()>, llvm::function_ref<llvm::BranchProbabilityInfo* ()>, llvm::function_ref<llvm::AssumptionCache* ()>, llvm::TargetLibraryInfo*, llvm::LibcallLoweringInfo const*, llvm::SSPLayoutInfo*) + 3278
11 llc       0x0000563848e2471d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
12 llc       0x00005638471ac761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc       0x0000563847748a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc       0x0000563847750f92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc       0x0000563847749820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc       0x00005638469a3689
17 llc       0x00005638469a0813 main + 1747
18 libc.so.6 0x00007fee3742a1ca
19 libc.so.6 0x00007fee3742a28b __libc_start_main + 139
20 llc       0x000056384699f925 _start + 37

Occurrences (6):

InputFunctionConfig
scalable-vector-struct.ll-mtriple=riscv32 -mattr=+v -verify-machineinstrs
scalable-vector-struct.2cd8f24902.ll (mutant of scalable-vector-struct.ll)-mtriple=riscv32 -mattr=+v -verify-machineinstrs
scalable-vector-struct.b43456cd56.ll (mutant of scalable-vector-struct.ll)-mtriple=riscv32 -mattr=+v -verify-machineinstrs
scalable-vector-struct.b600cdbd1a.ll (mutant of scalable-vector-struct.ll)-mtriple=riscv32 -mattr=+v -verify-machineinstrs
scalable-vector-struct.dcf3b5e3d9.ll (mutant of scalable-vector-struct.ll)-mtriple=riscv32 -mattr=+v -verify-machineinstrs
scalable-vector-struct.fc1c11d0f7.ll (mutant of scalable-vector-struct.ll)-mtriple=riscv32 -mattr=+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.