Fix an issue where the UTF dumper was ignoring the direction to generate uncapped dumps

llvm-svn: 236362
This commit is contained in:
Enrico Granata 2015-05-01 22:57:38 +00:00
parent 25723948c0
commit b0e8a55d4d
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ ReadUTFBufferAndDumpToStream (const ReadStringAndDumpToStreamOptions& options,
sourceSize = process_sp->GetTarget().GetMaximumSizeOfStringSummary();
needs_zero_terminator = true;
}
else
else if (!options.GetIgnoreMaxLength())
sourceSize = std::min(sourceSize,process_sp->GetTarget().GetMaximumSizeOfStringSummary());
const int bufferSPSize = sourceSize * type_width;