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

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 02:24:38 PST 2024


Author: Simon Pilgrim
Date: 2024-11-07T10:22:05Z
New Revision: 490e58a98e0518542c87aa16e326fcb446d7b1cc

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

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

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp
index 1fbf201f74a66b..f9cdbe8aea1706 100644
--- a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp
+++ b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp
@@ -218,6 +218,7 @@ bool Scheduler::trySchedule(ArrayRef<Instruction *> Instrs) {
     return tryScheduleUntil(Instrs);
   }
   }
+  llvm_unreachable("Unhandled BndlSchedState enum");
 }
 
 #ifndef NDEBUG


        


More information about the llvm-commits mailing list