================ @@ -897,7 +921,8 @@ struct TransferOpConversion : public VectorToSCFPattern<OpTy> { } else { // It's safe to assume the mask buffer can be unpacked if the data // buffer was unpacked. - auto castedMaskType = *unpackOneDim(maskBufferType); + auto maskBufferType = dyn_cast<MemRefType>(maskBuffer.getType()); ---------------- joker-eph wrote:
Why are you introducing a `dyn_cast` here? https://github.com/llvm/llvm-project/pull/76292 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits