Fix 'not all control paths return a value' warning on MSVC builds
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 Nov 2017 14:56:17 +0000 (14:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 Nov 2017 14:56:17 +0000 (14:56 +0000)
llvm-svn: 317790

llvm/lib/ExecutionEngine/SectionMemoryManager.cpp

index 2436bb1..2dc66a1 100644 (file)
@@ -59,6 +59,7 @@ uint8_t *SectionMemoryManager::allocateSection(
     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