[Mlir-commits] [mlir] 9370ea6 - [mlir][gpu] Fix another windows build issue

Christopher Bate llvmlistbot at llvm.org
Fri Jan 13 13:51:04 PST 2023


Author: Christopher Bate
Date: 2023-01-13T14:50:08-07:00
New Revision: 9370ea67cacb2312bf5a9813e63fd436a5dc3f34

URL: https://github.com/llvm/llvm-project/commit/9370ea67cacb2312bf5a9813e63fd436a5dc3f34
DIFF: https://github.com/llvm/llvm-project/commit/9370ea67cacb2312bf5a9813e63fd436a5dc3f34.diff

LOG: [mlir][gpu] Fix another windows build issue

Fixes another Windows build failure (C4715) caused by
6ca1a09f03e8e940f306bea73efa935e4ee38173.

Added: 
    

Modified: 
    mlir/lib/Dialect/GPU/Transforms/LowerMemorySpaceAttributes.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/GPU/Transforms/LowerMemorySpaceAttributes.cpp b/mlir/lib/Dialect/GPU/Transforms/LowerMemorySpaceAttributes.cpp
index bb5fb06f7fb98..40c2647e9ca6b 100644
--- a/mlir/lib/Dialect/GPU/Transforms/LowerMemorySpaceAttributes.cpp
+++ b/mlir/lib/Dialect/GPU/Transforms/LowerMemorySpaceAttributes.cpp
@@ -172,6 +172,8 @@ class LowerMemorySpaceAttributesPass
           case AddressSpace::Private:
             return privateAddrSpace;
           }
+          llvm_unreachable("unknown address space enum value");
+          return 0;
         });
     RewritePatternSet patterns(context);
     populateMemorySpaceLoweringPatterns(typeConverter, patterns);


        


More information about the Mlir-commits mailing list