mikaelholmen wrote: Hi @nikic
The following starts crashing with this patch: ``` opt ic2.ll -S -o /dev/null -passes=instcombine ``` It hits ``` opt: ../include/llvm/Support/Casting.h:578: decltype(auto) llvm::cast(From *) [To = llvm::TruncInst, From = llvm::Value]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed. ``` [ic2.ll.gz](https://github.com/user-attachments/files/15533503/ic2.ll.gz) https://github.com/llvm/llvm-project/pull/92885 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits