From 6d487a9b778cd2f4dd3acfe1d155a320bd1a676b Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 9 Sep 2011 20:35:15 +0000 Subject: Fix compiler warnings for GetGDBStoppointType(). llvm-svn: 139402 --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 5c04c36e41e..3bb551afd77 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -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; } -- cgit v1.2.3