[llvm] r317790 - Fix 'not all control paths return a value' warning on MSVC builds

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 06:56:17 PST 2017


Author: rksimon
Date: Thu Nov  9 06:56:17 2017
New Revision: 317790

URL: http://llvm.org/viewvc/llvm-project?rev=317790&view=rev
Log:
Fix 'not all control paths return a value' warning on MSVC builds

Modified:
    llvm/trunk/lib/ExecutionEngine/SectionMemoryManager.cpp

Modified: llvm/trunk/lib/ExecutionEngine/SectionMemoryManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/SectionMemoryManager.cpp?rev=317790&r1=317789&r2=317790&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/SectionMemoryManager.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/SectionMemoryManager.cpp Thu Nov  9 06:56:17 2017
@@ -59,6 +59,7 @@ uint8_t *SectionMemoryManager::allocateS
     case AllocationPurpose::RWData:
       return RWDataMem;
     }
+    llvm_unreachable("Unknown SectionMemoryManager::AllocationPurpose");
   }();
 
   // Look in the list of free memory regions and use a block there if one




More information about the llvm-commits mailing list