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

Run:explore-db12fc36f6-20261127-115111
Kind:crash
Category:Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file DataLayout.h
Occurrences:3 in 3 configs, 2 test files, 31 more counted only
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       0x00005585b632cc1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x00005585b6329bf1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x00005585b632d69b
3  libc.so.6 0x00007fefd9245330
4  libc.so.6 0x00007fefd929ebec pthread_kill + 284
5  libc.so.6 0x00007fefd924527e gsignal + 30
6  libc.so.6 0x00007fefd92288ff abort + 223
7  libc.so.6 0x00007fefd922881b
8  libc.so.6 0x00007fefd923b517
9  llc       0x00005585b48d9625
10 llc       0x00005585b6c1c38e 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       0x00005585b6c1d71d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
12 llc       0x00005585b4fa5761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc       0x00005585b5541a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc       0x00005585b5549f92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc       0x00005585b5542820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc       0x00005585b479c689
17 llc       0x00005585b4799813 main + 1747
18 libc.so.6 0x00007fefd922a1ca
19 libc.so.6 0x00007fefd922a28b __libc_start_main + 139
20 llc       0x00005585b4798925 _start + 37

Occurrences (3):

InputFunctionConfig
scalable-vector-struct.ll-mtriple=riscv32 -mattr=+v -verify-machineinstrs
scalable-vector-struct.41a6227a27.ll (mutant of scalable-vector-struct.ll)-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+a,+zbkb -O1
vploadff.74ab07fe66.ll (mutant of vploadff.ll)-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v,+c -O1

Generated 2026-11-29 14:49 UTC.