]> granicus.if.org Git - clang/commitdiff
Fix some not-yet-used diagnostic code in a template, which gcc spotted and clang
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Dec 2011 09:41:58 +0000 (09:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Dec 2011 09:41:58 +0000 (09:41 +0000)
did not!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146366 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 40cac3612948e7e019c60a4084a9eb525a9a0528..1bf1693b222e665d8ad4299814c41cf5655bfdf0 100644 (file)
@@ -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