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

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 04:32:49 PDT 2025


Author: Simon Pilgrim
Date: 2025-04-30T12:32:22+01:00
New Revision: 26da8870ede83fb9759a5c068b713beb742399ec

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

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

Added: 
    

Modified: 
    llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 27d26900de6be..252781e54ab06 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -5864,6 +5864,7 @@ struct OffsetResult {
     case OffsetKind::Select:
       return Builder.CreateSelect(V0, V1, V2);
     }
+    llvm_unreachable("Unknown OffsetKind enum");
   }
 };
 


        


More information about the llvm-commits mailing list