Placate MVSC after my last commit.

Zachary introduced the 'default' case explicitly to placate a warning in
the Microsoft compiler but that broke clang with -Werror. 
The new code should keep both compilers happy.

llvm-svn: 258212
This commit is contained in:
Davide Italiano 2016-01-19 22:47:51 +00:00
parent dba78e676f
commit 13fe2a9517
2 changed files with 4 additions and 8 deletions

View File

@ -106,8 +106,6 @@ public:
{
case CURRENT_FILE_NOT_YET_PUSHED:
return true;
case CURRENT_FILE_POPPED:
return false;
case CURRENT_FILE_PUSHED:
// If we are in file included in the current file,
// the entry should be added.
@ -118,6 +116,8 @@ public:
return false;
else
return true;
default:
return false;
}
}

View File

@ -1489,12 +1489,6 @@ Process::IsAlive ()
{
switch (m_private_state.GetValue())
{
case eStateInvalid:
case eStateUnloaded:
case eStateDetached:
case eStateExited:
return false;
case eStateConnected:
case eStateAttaching:
case eStateLaunching:
@ -1504,6 +1498,8 @@ Process::IsAlive ()
case eStateCrashed:
case eStateSuspended:
return true;
default:
return false;
}
}