[llvm] c3cb273 - Fix MSVC "not all control paths return a value" warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 03:56:39 PDT 2024


Author: Simon Pilgrim
Date: 2024-08-29T11:56:15+01:00
New Revision: c3cb27370af40e491446164840766478d3258429

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

LOG: Fix MSVC "not all control paths return a value" warning. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp b/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
index ca371a883b897e..a5807a70582b39 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
@@ -1219,6 +1219,7 @@ template <> struct DOTGraphTraits<SplitGraph> : public DefaultDOTGraphTraits {
     case SplitGraph::EdgeKind::IndirectCall:
       return "style=\"dashed\"";
     }
+    llvm_unreachable("Unknown SplitGraph::EdgeKind enum");
   }
 };
 


        


More information about the llvm-commits mailing list