From: Simon Pilgrim Date: Thu, 9 Nov 2017 14:56:17 +0000 (+0000) Subject: Fix 'not all control paths return a value' warning on MSVC builds X-Git-Tag: llvmorg-6.0.0-rc1~3794 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89d31658e5601c8a9a7737db64e239c1efcc5d6b;p=platform%2Fupstream%2Fllvm.git Fix 'not all control paths return a value' warning on MSVC builds llvm-svn: 317790 --- diff --git a/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp b/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp index 2436bb1..2dc66a1 100644 --- a/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp +++ b/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp @@ -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