forked from OSchip/llvm-project
Trying to fix a buffer overflow that broke buildbot sanitizer-x86_64-linux-fast/builds/13946.
llvm-svn: 273319
This commit is contained in:
parent
26c6bb103f
commit
5a35e65ca9
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue