Skip to content

Assertion failed: isa<To>(Val) && "cast<Ty>() argument of incompatible type!", file D:\r\_work\swift-build\swift-build\SourceCache\llvm-project\llvm\include\llvm/Support/Casting.h, line 578 #83017

@compnerd

Description

@compnerd

Description

No response

Reproduction

struct S<let Count: Int, T> {
  let a: InlineArray<Count, (T, T)?>
}

Stack dump

1.      compnerd.org Swift version 6.2-dev (LLVM dbe0bbb2d719786, Swift 11cb7e58002765c)
2.      Compiling with the current language version
3.      While evaluating request IRGenRequest(IR Generation for file "...")
4.      While emitting IR SIL function "@$s3ADT1SV1a33_456864741BC253F09A56C71DC6298C3DLLs11InlineArrayVyxq__q_tSgGvg".
 for getter for a (at ...)
Exception Code: 0x80000003

Expected behavior

Proper diagnostic (or rather for this to work)

Environment

compnerd.org Swift version 6.2-dev (LLVM dbe0bbb2d719786, Swift 11cb7e5)
Target: aarch64-unknown-windows-msvc

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    IRGenLLVM IR generationbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions