Fix two 'variable is used uninitialised' warnings. Change assert to llvm_unreachable.

llvm-svn: 184334
This commit is contained in:
Andy Gibbs 2013-06-19 19:05:52 +00:00
parent a297a97e09
commit 44f4db784b
1 changed files with 2 additions and 2 deletions

View File

@ -488,13 +488,13 @@ POSIXThread::ThreadNotify(const ProcessMessage &message)
unsigned
POSIXThread::GetRegisterIndexFromOffset(unsigned offset)
{
unsigned reg;
unsigned reg = 0;
ArchSpec arch = Host::GetArchitecture();
switch (arch.GetCore())
{
default:
assert(false && "CPU type not supported!");
llvm_unreachable("CPU type not supported!");
break;
case ArchSpec::eCore_x86_32_i386: