From: Richard Smith Date: Mon, 12 Dec 2011 09:41:58 +0000 (+0000) Subject: Fix some not-yet-used diagnostic code in a template, which gcc spotted and clang X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5093420308784e31071c8cd723a58d74159f393;p=clang Fix some not-yet-used diagnostic code in a template, which gcc spotted and clang did not! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146366 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 40cac36129..1bf1693b22 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -1576,7 +1576,7 @@ protected: typedef ExprEvaluatorBase ExprEvaluatorBaseTy; OptionalDiagnostic CCEDiag(const Expr *E, diag::kind D) { - Info.CCEDiag(E, E->getExprLoc(), D); + return Info.CCEDiag(E->getExprLoc(), D); } /// Report an evaluation error. This should only be called when an error is