[Mlir-commits] [mlir] 9aaf509 - [mlir][sparse] Fix warning on GCC

wren romano llvmlistbot at llvm.org
Mon Nov 14 15:01:42 PST 2022


Author: wren romano
Date: 2022-11-14T15:01:29-08:00
New Revision: 9aaf509d7ebee1017006cc5442461a73d92e117c

URL: https://github.com/llvm/llvm-project/commit/9aaf509d7ebee1017006cc5442461a73d92e117c
DIFF: https://github.com/llvm/llvm-project/commit/9aaf509d7ebee1017006cc5442461a73d92e117c.diff

LOG: [mlir][sparse] Fix warning on GCC

Reviewed By: aartbik, Peiming

Differential Revision: https://reviews.llvm.org/D137987

Added: 
    

Modified: 
    mlir/include/mlir/ExecutionEngine/SparseTensor/PermutationRef.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/ExecutionEngine/SparseTensor/PermutationRef.h b/mlir/include/mlir/ExecutionEngine/SparseTensor/PermutationRef.h
index 194c030a49c3f..313470d27a38c 100644
--- a/mlir/include/mlir/ExecutionEngine/SparseTensor/PermutationRef.h
+++ b/mlir/include/mlir/ExecutionEngine/SparseTensor/PermutationRef.h
@@ -127,7 +127,6 @@ class MLIR_SPARSETENSOR_GSL_POINTER [[nodiscard]] PermutationRef final {
     assert(size == permSize && "size mismatch");
     for (uint64_t i = 0; i < permSize; ++i)
       out[i] = values[perm[i]];
-    return out;
   }
 
 private:


        


More information about the Mlir-commits mailing list