aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-12-12 09:41:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-12-12 09:41:58 +0000
commitd5093420308784e31071c8cd723a58d74159f393 (patch)
treed04b1a935da573b2ee8f010b39fa681504628825 /lib/AST/ExprConstant.cpp
parentdd1f29b6d686899bfd033f26e16cb1621e5549e8 (diff)
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
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r--lib/AST/ExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
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