[lld] 7adaefb - [wasm] Silence 'not all control paths return a value' warning when

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 11:20:40 PDT 2023


Author: Alexandre Ganea
Date: 2023-03-15T14:20:18-04:00
New Revision: 7adaefbaa8bd506d0355a0f5419e8bf21a24a1ff

URL: https://github.com/llvm/llvm-project/commit/7adaefbaa8bd506d0355a0f5419e8bf21a24a1ff
DIFF: https://github.com/llvm/llvm-project/commit/7adaefbaa8bd506d0355a0f5419e8bf21a24a1ff.diff

LOG: [wasm] Silence 'not all control paths return a value' warning when
building with MSVC on Windows

Added: 
    

Modified: 
    lld/wasm/SyntheticSections.cpp

Removed: 
    


################################################################################
diff  --git a/lld/wasm/SyntheticSections.cpp b/lld/wasm/SyntheticSections.cpp
index 0dc0e1d86a75f..a1fd6bcf99017 100644
--- a/lld/wasm/SyntheticSections.cpp
+++ b/lld/wasm/SyntheticSections.cpp
@@ -899,6 +899,7 @@ static size_t getHashSize() {
   case BuildIdKind::None:
     return 0;
   }
+  llvm_unreachable("build id kind not implemented");
 }
 
 BuildIdSection::BuildIdSection()


        


More information about the llvm-commits mailing list