From 7c22c9dcdd683ec42c86f3cd54b87f112a250426 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 7 Mar 2009 07:01:10 +0000 Subject: [PATCH] Don't discard increment/decrement on function pointers. It's kind of difficult to come up with a testcase because the code generation for this construct is broken. llvm-svn: 66325 --- clang/lib/Sema/SemaExpr.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 9ddee607015a..79be16252097 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -3554,7 +3554,6 @@ QualType Sema::CheckIncrementDecrementOperand(Expr *Op, SourceLocation OpLoc, Diag(OpLoc, diag::ext_gnu_ptr_func_arith) << ResType << Op->getSourceRange(); - return QualType(); } else { DiagnoseIncompleteType(OpLoc, PT->getPointeeType(), diag::err_typecheck_arithmetic_incomplete_type,