]> granicus.if.org Git - clang/commitdiff
Remove another unused argument.
authorAnders Carlsson <andersca@mac.com>
Wed, 26 Aug 2009 23:00:36 +0000 (23:00 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 26 Aug 2009 23:00:36 +0000 (23:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80175 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/Sema.h
lib/Sema/SemaType.cpp

index 972f7ad2d30e01c059cef33cc17ef146dc0f80f0..924a861012a20dd15a167903284559882ed855c1 100644 (file)
@@ -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);
   
index 2a74a874fa9d283420c4ea91426daf1cb247649c..9ca38e4ad7e9f490ef7de21998d79c354968fa59 100644 (file)
@@ -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,