You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if there's some enhancement potential in here, but this should prevent the crashing at least by dyn_casting instead of plain casting: https://reviews.llvm.org/rGc5a4d80fd47c
Extended Description
Reproduce with:
opt -S -o - bbi-48944.ll -memcpyopt
Result:
opt: ../include/llvm/Support/Casting.h:269: typename cast_retty<X, Y *>::ret_type llvm::cast(Y *) [X = llvm::PointerType, Y = llvm::Type]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed.
This seems to be rather old, I've reproduced it with saved builds from July 2019.
The text was updated successfully, but these errors were encountered: