diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-12 09:41:58 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-12 09:41:58 +0000 |
commit | d5093420308784e31071c8cd723a58d74159f393 (patch) | |
tree | d04b1a935da573b2ee8f010b39fa681504628825 /lib/AST/ExprConstant.cpp | |
parent | dd1f29b6d686899bfd033f26e16cb1621e5549e8 (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.cpp | 2 |
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 |