Try to fix build break due to template argument deduction.

llvm-svn: 297902
This commit is contained in:
Zachary Turner 2017-03-15 22:32:59 +00:00
parent f1220084f6
commit ed261f69dc
1 changed files with 7 additions and 6 deletions

View File

@ -54,11 +54,12 @@ static void set_differences(Range &&R1, Range &&R2,
}
}
template<typename Range>
static void set_differences(Range &&R1, Range &&R2,
SmallVectorImpl<ValueOfRange<Range>> *OnlyLeft,
SmallVectorImpl<ValueOfRange<Range>> *OnlyRight,
SmallVectorImpl<ValueOfRange<Range>> *Intersection) {
template <typename Range>
static void
set_differences(Range &&R1, Range &&R2,
SmallVectorImpl<ValueOfRange<Range>> *OnlyLeft,
SmallVectorImpl<ValueOfRange<Range>> *OnlyRight,
SmallVectorImpl<ValueOfRange<Range>> *Intersection = nullptr) {
std::less<ValueOfRange<Range>> Comp;
set_differences(std::forward<Range>(R1), std::forward<Range>(R2), OnlyLeft, OnlyRight, Intersection, Comp);
}
@ -338,7 +339,7 @@ Error DiffStyle::diffStringTable() {
SmallVector<StringRef, 64> OnlyP;
SmallVector<StringRef, 64> OnlyQ;
set_differences(Strings1, Strings2, &OnlyP, &OnlyQ, nullptr);
set_differences(Strings1, Strings2, &OnlyP, &OnlyQ);
if (!OnlyP.empty()) {
HasDiff = true;