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 | 187ef0140493fb72e250c55e648f8ab735f8eb18 (patch) | |
tree | 04f298fcbbd0e45778ec71c6a84985cdaa557c26 /clang/lib/AST/ExprConstant.cpp | |
parent | 92b1ce0a80184af7cef85da937c1349b6409db89 (diff) | |
download | bcm5719-llvm-187ef0140493fb72e250c55e648f8ab735f8eb18.tar.gz bcm5719-llvm-187ef0140493fb72e250c55e648f8ab735f8eb18.zip |
Fix some not-yet-used diagnostic code in a template, which gcc spotted and clang
did not!
llvm-svn: 146366
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 40cac361294..1bf1693b222 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/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 |