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

Run:main-b577f07195-20261129-101839
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 b577f07195
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:794: 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       0x00005572b27a49eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x00005572b27a19c1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x00005572b27a546b
3  libc.so.6 0x00007f7f11245330
4  libc.so.6 0x00007f7f1129ebec pthread_kill + 284
5  libc.so.6 0x00007f7f1124527e gsignal + 30
6  libc.so.6 0x00007f7f112288ff abort + 223
7  libc.so.6 0x00007f7f1122881b
8  libc.so.6 0x00007f7f1123b517
9  llc       0x00005572b0d520b5
10 llc       0x00005572b3093e2e 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       0x00005572b30951bd llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
12 llc       0x00005572b141e6b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc       0x00005572b19b9b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc       0x00005572b19c2052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc       0x00005572b19ba8e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc       0x00005572b0c15149
17 llc       0x00005572b0c122d3 main + 1747
18 libc.so.6 0x00007f7f1122a1ca
19 libc.so.6 0x00007f7f1122a28b __libc_start_main + 139
20 llc       0x00005572b0c113e5 _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.