Issue 87486
Summary [clang][CodeGen] Assertion failed on isa<To>(Val).
Labels clang
Assignees
Reporter idler66
    The line of code "assert(isa<To>(Val) && "cast<Ty>() argument of incompatible type!");"  had been added into  "[[nodiscard]] inline decltype(auto) cast(From *Val)" in [a65bb](https://github.com/llvm/llvm-project/commit/f0d2a55d3aa68827ad708a16650bb0b341ca65bb) by @preames  which causes bugs to #https://github.com/llvm/llvm-project/pull/87332 .

Error Messages: 
Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed for windows. 
Assertion failed: detail::isPresent(Val) && "dyn_cast on a non-existent value" for linux.

Build Info:
[github-pull-requests_build_52112_linux-linux-x64.log](https://github.com/llvm/llvm-project/files/14851602/github-pull-requests_build_52112_linux-linux-x64.log)
[github-pull-requests_build_52112_windows-windows-x64.log](https://github.com/llvm/llvm-project/files/14851611/github-pull-requests_build_52112_windows-windows-x64.log)

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to