Skip to content

Commit 6517bce

Browse files
committed
DiagnosticEngine: Fix a Diagnostic ctor that skipped group computation
1 parent d8435e4 commit 6517bce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/swift/AST/DiagnosticEngine.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,9 @@ namespace swift {
534534
gatherArgs(VArgs...);
535535
}
536536

537-
/*implicit*/Diagnostic(DiagID ID, ArrayRef<DiagnosticArgument> Args)
538-
: ID(ID), Args(Args.begin(), Args.end()) {}
537+
Diagnostic(DiagID ID, ArrayRef<DiagnosticArgument> Args) : Diagnostic(ID) {
538+
this->Args.append(Args.begin(), Args.end());
539+
}
539540

540541
template <class... ArgTypes>
541542
static Diagnostic fromTuple(Diag<ArgTypes...> id,

0 commit comments

Comments
 (0)