Trying to fix a buffer overflow that broke buildbot sanitizer-x86_64-linux-fast/builds/13946.

llvm-svn: 273319
This commit is contained in:
Eric Liu 2016-06-21 20:49:50 +00:00
parent 26c6bb103f
commit 5a35e65ca9
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ calculateRangesAfterReplacements(const Replacements &Replaces,
for (const auto &R : MergedRanges)
FakeReplaces.insert(Replacement(Replaces.begin()->getFilePath(),
R.getOffset(), R.getLength(),
std::string(" ", R.getLength())));
std::string(R.getLength(), ' ')));
tooling::Replacements NewReplaces = mergeReplacements(FakeReplaces, Replaces);
return calculateChangedRanges(NewReplaces);
}