[cfe-commits] r146366 - /cfe/trunk/lib/AST/ExprConstant.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Mon Dec 12 01:41:58 PST 2011
Author: rsmith
Date: Mon Dec 12 03:41:58 2011
New Revision: 146366
URL: http://llvm.org/viewvc/llvm-project?rev=146366&view=rev
Log:
Fix some not-yet-used diagnostic code in a template, which gcc spotted and clang
did not!
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=146366&r1=146365&r2=146366&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Mon Dec 12 03:41:58 2011
@@ -1576,7 +1576,7 @@
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
More information about the cfe-commits
mailing list