This patch fixes the following build warning from gcc in SPIRVUtils.cpp after D142532 changes:
[ 83%] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVUtils.cpp.o /storage/home/idyachkov/spirv/llvm-project/llvm/lib/Target/SPIRV/SPIRVUtils.cpp: In function \u2018llvm::SPIRV::MemorySemantics::MemorySemantics llvm::getMemSemantics(llvm::AtomicOrdering)\u2019: /storage/home/idyachkov/spirv/llvm-project/llvm/lib/Target/SPIRV/SPIRVUtils.cpp:211:1: warning: control reaches end of non-void function [-Wreturn-type] }
The patched code is Ok with gcc and llvm, but I have not tested MSVC compiler.