[Mlir-commits] [mlir] 322c235 - [mlir][spirv] NFC: remove uncessary return after llvm_unreachable

Lei Zhang llvmlistbot at llvm.org
Sun Apr 5 17:03:36 PDT 2020


Author: Lei Zhang
Date: 2020-04-05T20:00:56-04:00
New Revision: 322c235a522b880a830fd2f22da5f9591fa1d468

URL: https://github.com/llvm/llvm-project/commit/322c235a522b880a830fd2f22da5f9591fa1d468
DIFF: https://github.com/llvm/llvm-project/commit/322c235a522b880a830fd2f22da5f9591fa1d468.diff

LOG: [mlir][spirv] NFC: remove uncessary return after llvm_unreachable

Added: 
    

Modified: 
    mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp b/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
index 520a1f36f18c..cfd16c38a0ab 100644
--- a/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
+++ b/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
@@ -18,7 +18,6 @@
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Support/Debug.h"
 
-#include <cstdint>
 #include <functional>
 
 #define DEBUG_TYPE "mlir-spirv-lowering"
@@ -138,7 +137,6 @@ SPIRVTypeConverter::getMemorySpaceForStorageClass(spirv::StorageClass storage) {
   switch (storage) { STORAGE_SPACE_MAP_LIST(STORAGE_SPACE_MAP_FN) }
 #undef STORAGE_SPACE_MAP_FN
   llvm_unreachable("unhandled storage class!");
-  return UINT32_MAX;
 }
 
 Optional<spirv::StorageClass>


        


More information about the Mlir-commits mailing list