[Lldb-commits] [lldb] r137334 - /lldb/trunk/source/Core/ArchSpec.cpp
Johnny Chen
johnny.chen at apple.com
Thu Aug 11 12:40:36 PDT 2011
Author: johnny
Date: Thu Aug 11 14:40:36 2011
New Revision: 137334
URL: http://llvm.org/viewvc/llvm-project?rev=137334&view=rev
Log:
Fix a logic error caught by the static analyzer.
Modified:
lldb/trunk/source/Core/ArchSpec.cpp
Modified: lldb/trunk/source/Core/ArchSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ArchSpec.cpp?rev=137334&r1=137333&r2=137334&view=diff
==============================================================================
--- lldb/trunk/source/Core/ArchSpec.cpp (original)
+++ lldb/trunk/source/Core/ArchSpec.cpp Thu Aug 11 14:40:36 2011
@@ -457,7 +457,7 @@
bool
ArchSpec::SetTriple (const char *triple_cstr, Platform *platform)
{
- if (triple_cstr || triple_cstr[0])
+ if (triple_cstr && !triple_cstr[0])
{
llvm::StringRef triple_stref (triple_cstr);
if (triple_stref.startswith (LLDB_ARCH_DEFAULT))
More information about the lldb-commits
mailing list