llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-mlir Author: llvmbot <details> <summary>Changes</summary> Backport e217dcb8de5dd83b307fe8b95b43de11a7d894ab Requested by: @<!-- -->svs-quic --- Full diff: https://github.com/llvm/llvm-project/pull/212475.diff 1 Files Affected: - (modified) mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp (+2-2) ``````````diff diff --git a/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp b/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp index 948229bb53328..e97546f43c159 100644 --- a/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp +++ b/mlir/lib/Conversion/NVGPUToNVVM/NVGPUToNVVM.cpp @@ -1807,8 +1807,8 @@ lookupConvOp(const TableEntry (&table)[N], Type srcElemType, Type dstElemType) { /// Extract a single element from a vector. static Value extractElement(ImplicitLocOpBuilder &b, Value srcVec, int idx) { - auto vecTy = cast<VectorType>(srcVec.getType()); - assert(idx >= 0 && idx < vecTy.getNumElements() && + assert(idx >= 0 && + idx < cast<VectorType>(srcVec.getType()).getNumElements() && "extractElement: index out of bounds"); IntegerType i64Ty = b.getI64Type(); return b.create<LLVM::ExtractElementOp>( `````````` </details> https://github.com/llvm/llvm-project/pull/212475 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
