summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-03-23 01:44:59 +0000
committerEnrico Granata <egranata@apple.com>2013-03-23 01:44:59 +0000
commit9d71afe8cfd49c92504c382b08ed39f6390fc51b (patch)
tree1e986861d9acf198c276af2a63d798efedbcf560 /lldb/source/Core/ValueObject.cpp
parent52e6378f0fd35386521e0895ddf55bd36ab83dda (diff)
downloadbcm5719-llvm-9d71afe8cfd49c92504c382b08ed39f6390fc51b.tar.gz
bcm5719-llvm-9d71afe8cfd49c92504c382b08ed39f6390fc51b.zip
And then again only compute the more expensive piece of data if need be :-)
llvm-svn: 177812
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 80adcc3ad7e..4e5e921f287 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -1258,9 +1258,9 @@ ValueObject::GetValueAsCString (lldb::Format format,
// put custom bytes to display in this DataExtractor to override the default value logic
lldb_private::DataExtractor special_format_data;
clang::ASTContext* ast = GetClangAST();
- Flags type_flags(ClangASTContext::GetTypeInfo(clang_type, ast, NULL));
if (format == eFormatCString)
{
+ Flags type_flags(ClangASTContext::GetTypeInfo(clang_type, ast, NULL));
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
OpenPOWER on IntegriCloud