diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-26 22:59:12 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-26 22:59:12 +0000 |
commit | d497ba7ca5e52cd4523822055abd5e89dfec1800 (patch) | |
tree | 9602a0d15dae8e59dfbcd6db1ed8a4fc0db799b1 /lib/Sema/SemaExprCXX.cpp | |
parent | bd4c4aebe6035e7a7125470cc9f0f92511230ee3 (diff) |
Remove the PrintType argument from RequireCompleteType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index ae5010cfac..a8eb2cbc7e 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -13,11 +13,12 @@ #include "SemaInherit.h" #include "Sema.h" -#include "clang/AST/ExprCXX.h" #include "clang/AST/ASTContext.h" -#include "clang/Parse/DeclSpec.h" -#include "clang/Lex/Preprocessor.h" +#include "clang/AST/ExprCXX.h" +#include "clang/Basic/PartialDiagnostic.h" #include "clang/Basic/TargetInfo.h" +#include "clang/Lex/Preprocessor.h" +#include "clang/Parse/DeclSpec.h" #include "llvm/ADT/STLExtras.h" using namespace clang; @@ -147,9 +148,9 @@ bool Sema::CheckCXXThrowOperand(SourceLocation ThrowLoc, Expr *&E) { } if (!isPointer || !Ty->isVoidType()) { if (RequireCompleteType(ThrowLoc, Ty, - isPointer ? diag::err_throw_incomplete_ptr - : diag::err_throw_incomplete, - E->getSourceRange(), SourceRange(), QualType())) + PDiag(isPointer ? diag::err_throw_incomplete_ptr + : diag::err_throw_incomplete) + << E->getSourceRange())) return true; } @@ -1081,8 +1082,7 @@ Sema::OwningExprResult Sema::ActOnUnaryTypeTrait(UnaryTypeTrait OTT, // to be complete. if (OTT != UTT_IsClass && OTT != UTT_IsEnum && OTT != UTT_IsUnion) { if (RequireCompleteType(KWLoc, T, - diag::err_incomplete_type_used_in_type_trait_expr, - SourceRange(), SourceRange(), T)) + diag::err_incomplete_type_used_in_type_trait_expr)) return ExprError(); } |