llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[clang][CodeGen] Assertion failed on isa<To>(Val).

Open idler66 opened this issue 2 years ago • 1 comments

The line of code "assert(isa(Val) && "cast() argument of incompatible type!");" had been added into "[[nodiscard]] inline decltype(auto) cast(From *Val)" in a65bb 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 github-pull-requests_build_52112_windows-windows-x64.log

idler66 avatar Apr 03 '24 12:04 idler66

@llvm/issue-subscribers-clang-codegen

Author: idle666 (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 github-pull-requests_build_52112_windows-windows-x64.log

llvmbot avatar Apr 03 '24 14:04 llvmbot