summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-03-23 01:44:23 +0000
committerEnrico Granata <egranata@apple.com>2013-03-23 01:44:23 +0000
commit123c39c02bc5d2a5bdd9e12d24b65563e7adf07e (patch)
tree62156419c88043d2d90803f4bf28d0acb8f94eb4 /lldb/source/Core
parent3cee413b4a6ec7caf4b04c077da0894ce8b44f91 (diff)
downloadbcm5719-llvm-123c39c02bc5d2a5bdd9e12d24b65563e7adf07e.tar.gz
bcm5719-llvm-123c39c02bc5d2a5bdd9e12d24b65563e7adf07e.zip
Invert two condition checks to evaluate them in cheapest-to-more-expensive order
llvm-svn: 177810
Diffstat (limited to 'lldb/source/Core')
-rw-r--r--lldb/source/Core/ValueObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 279f92c3b63..80adcc3ad7e 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -1259,9 +1259,9 @@ ValueObject::GetValueAsCString (lldb::Format format,
lldb_private::DataExtractor special_format_data;
clang::ASTContext* ast = GetClangAST();
Flags type_flags(ClangASTContext::GetTypeInfo(clang_type, ast, NULL));
- if (type_flags.Test(ClangASTContext::eTypeIsPointer) && !type_flags.Test(ClangASTContext::eTypeIsObjC))
+ if (format == eFormatCString)
{
- if (format == eFormatCString)
+ if (type_flags.Test(ClangASTContext::eTypeIsPointer) && !type_flags.Test(ClangASTContext::eTypeIsObjC))
{
// if we are dumping a pointer as a c-string, get the pointee data as a string
TargetSP target_sp(GetTargetSP());
OpenPOWER on IntegriCloud