Issue 75510
Summary [DAG] SelectionDAGBuilder::getValueImpl ASSERT: isa<To>(Val) && "cast<Ty>() argument of incompatible type!"
Labels new issue
Assignees
Reporter RKSimon
    Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64839
```ll
define void @foo() {
entry:
  %x3 = tail call i1 @llvm.type.test(ptr undef, metadata !"foo")
  unreachable
}
declare i1 @llvm.type.test(ptr, metadata)
```
llc -mtriple=x86_64-- 
```asm
        .text
 .file   "fuzz.ll"
Assertion failed: isa<To>(Val) && "cast<Ty>() argument of incompatible type!", file E:\llvm\llvm-project\llvm\include\llvm/Support/Casting.h, line 578
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: ninja\\bin\\llc -mtriple=x86_64-- fuzz.ll -o -
1.      Running pass 'Function Pass Manager' on module 'fuzz.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@foo'
Exception Code: 0x80000003
 #0 0x00007ff6f1cad7d5 HandleAbort E:\llvm\llvm-project\llvm\lib\Support\Windows\Signals.inc:424:0
 #1 0x00007ff862e51881 (C:\Windows\System32\ucrtbase.dll+0x71881)
 #2 0x00007ff862e52851 (C:\Windows\System32\ucrtbase.dll+0x72851)
 #3 0x00007ff862e5426e (C:\Windows\System32\ucrtbase.dll+0x7426e)
 #4 0x00007ff862e54165 (C:\Windows\System32\ucrtbase.dll+0x74165)
 #5 0x00007ff862e544f1 (C:\Windows\System32\ucrtbase.dll+0x744f1)
 #6 0x00007ff6f0840e66 E:\llvm\llvm-project\llvm\include\llvm\Support\Casting.h:580:0
 #7 0x00007ff6f1a0b323 llvm::SelectionDAGBuilder::getValueImpl(class llvm::Value const *) E:\llvm\llvm-project\llvm\lib\CodeGen\SelectionDAG\SelectionDAGBuilder.cpp:1891:0
 #8 0x00007ff6f1a09ca2 llvm::SelectionDAGBuilder::getValue(class llvm::Value const *) E:\llvm\llvm-project\llvm\lib\CodeGen\SelectionDAG\SelectionDAGBuilder.cpp:1708:0
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to