[flang-commits] [llvm] [libcxxabi] [lldb] [libcxx] [polly] [openmp] [compiler-rt] [flang] [libc] [mlir] [clang-tools-extra] [clang] [mlir][vector] Fix invalid `LoadOp` indices being created (PR #76292)
Mehdi Amini via flang-commits
flang-commits at lists.llvm.org
Tue Jan 2 12:37:04 PST 2024
================
@@ -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:
OK, but we're not checking the result: if this can't fail here by construction it should be a cast instead.
https://github.com/llvm/llvm-project/pull/76292
More information about the flang-commits
mailing list