Fix compiler warnings for GetGDBStoppointType().

llvm-svn: 139402
This commit is contained in:
Johnny Chen 2011-09-09 20:35:15 +00:00
parent f754f88f6d
commit 6d487a9b77
1 changed files with 2 additions and 2 deletions

View File

@ -1894,9 +1894,9 @@ GetGDBStoppointType (WatchpointLocation *wp)
assert(watch_read || watch_write);
if (watch_read && watch_write)
return eWatchpointReadWrite;
if (watch_read)
else if (watch_read)
return eWatchpointRead;
if (watch_write)
else // Must be watch_write, then.
return eWatchpointWrite;
}