Fixes calculateRangesAfterReplacements crash when Replacements is empty.
authorEric Liu <ioeric@google.com>
Mon, 8 Aug 2016 13:37:39 +0000 (13:37 +0000)
committerEric Liu <ioeric@google.com>
Mon, 8 Aug 2016 13:37:39 +0000 (13:37 +0000)
commit73337f3dfa3114150f2bf68244f90213db38db50
tree365d643aa18548bff6a877e49b19d999544e0b3b
parentad0c42e3a9a185bc904aba3407f9dd5c9b08f67c
Fixes calculateRangesAfterReplacements crash when Replacements is empty.

Reviewers: klimek, djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D23264

llvm-svn: 278004
clang/lib/Tooling/Core/Replacement.cpp
clang/unittests/Tooling/RefactoringTest.cpp