diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-20 06:06:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-20 06:06:08 +0000 |
commit | d3a94e24ddf3fb90de76b17bd176d9ed61e66f2c (patch) | |
tree | d55ad18f3559a2da9836895aaf9d80bb33263015 /lib/Sema/SemaExprCXX.cpp | |
parent | 572af49cc0052931e7b06902d99c72f04b75704e (diff) |
remove another old-school Diag method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 80bd8eeef3..55616bad76 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -125,8 +125,8 @@ Sema::ActOnCXXTypeConstructExpr(SourceRange TypeRange, TypeTy *TypeRep, // be complete. // if (!RT->getDecl()->isDefinition()) - return Diag(TyBeginLoc, diag::err_invalid_incomplete_type_use, - Ty.getAsString(), FullRange); + return Diag(TyBeginLoc, diag::err_invalid_incomplete_type_use) + << Ty.getAsString() << FullRange; unsigned DiagID = PP.getDiagnostics().getCustomDiagID(Diagnostic::Error, "class constructors are not supported yet"); @@ -233,8 +233,8 @@ bool Sema::CheckCXXBooleanCondition(Expr *&CondExpr) { AssignConvertType ConvTy = CheckSingleAssignmentConstraints(Context.BoolTy, CondExpr); if (ConvTy == Incompatible) - return Diag(CondExpr->getLocStart(), diag::err_typecheck_bool_condition, - Ty.getAsString(), CondExpr->getSourceRange()); + return Diag(CondExpr->getLocStart(), diag::err_typecheck_bool_condition) + << Ty.getAsString() << CondExpr->getSourceRange(); return false; } |