[Lldb-commits] [lldb] r220018 - Remove always-true part of a conditional expression.

Jason Molenda jmolenda at apple.com
Thu Oct 16 18:38:10 PDT 2014


Author: jmolenda
Date: Thu Oct 16 20:38:10 2014
New Revision: 220018

URL: http://llvm.org/viewvc/llvm-project?rev=220018&view=rev
Log:
Remove always-true part of a conditional expression.
clang warning.

Modified:
    lldb/trunk/source/Host/macosx/Symbols.cpp

Modified: lldb/trunk/source/Host/macosx/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Symbols.cpp?rev=220018&r1=220017&r2=220018&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Symbols.cpp (original)
+++ lldb/trunk/source/Host/macosx/Symbols.cpp Thu Oct 16 20:38:10 2014
@@ -730,7 +730,7 @@ Symbols::DownloadObjectAndSymbolFile (Mo
             StreamString command;
             if (!uuid_str.empty())
                 command.Printf("%s --ignoreNegativeCache --copyExecutable %s", g_dsym_for_uuid_exe_path, uuid_str.c_str());
-            else if (file_path && file_path[0])
+            else if (file_path[0] != '\0')
                 command.Printf("%s --ignoreNegativeCache --copyExecutable %s", g_dsym_for_uuid_exe_path, file_path);
             
             if (!command.GetString().empty())





More information about the lldb-commits mailing list