diff options
-rw-r--r-- | lib/Sema/Sema.h | 3 | ||||
-rw-r--r-- | lib/Sema/SemaType.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 972f7ad2d3..924a861012 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -484,8 +484,7 @@ public: virtual TypeResult ActOnTypeName(Scope *S, Declarator &D); bool RequireCompleteType(SourceLocation Loc, QualType T, unsigned diag, - SourceRange Range1 = SourceRange(), - SourceRange Range2 = SourceRange()); + SourceRange Range1 = SourceRange()); bool RequireCompleteType(SourceLocation Loc, QualType T, const PartialDiagnostic &PD); diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 2a74a874fa..9ca38e4ad7 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -1771,9 +1771,9 @@ void Sema::ProcessTypeAttributeList(QualType &Result, const AttributeList *AL) { /// @returns @c true if @p T is incomplete and a diagnostic was emitted, /// @c false otherwise. bool Sema::RequireCompleteType(SourceLocation Loc, QualType T, unsigned diag, - SourceRange Range1, SourceRange Range2) { + SourceRange Range1) { return RequireCompleteType(Loc, T, - PDiag(diag) << Range1 << Range2); + PDiag(diag) << Range1); } bool Sema::RequireCompleteType(SourceLocation Loc, QualType T, |