Fix 'not all control paths return a value' warning on MSVC builds

llvm-svn: 317790
This commit is contained in:
Simon Pilgrim 2017-11-09 14:56:17 +00:00
parent 17307d9d33
commit 89d31658e5
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ uint8_t *SectionMemoryManager::allocateSection(
case AllocationPurpose::RWData: case AllocationPurpose::RWData:
return RWDataMem; return RWDataMem;
} }
llvm_unreachable("Unknown SectionMemoryManager::AllocationPurpose");
}(); }();
// Look in the list of free memory regions and use a block there if one // Look in the list of free memory regions and use a block there if one