diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-03-07 07:01:10 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-03-07 07:01:10 +0000 |
commit | 7c22c9dcdd683ec42c86f3cd54b87f112a250426 (patch) | |
tree | 3bc3d6a97b9e7c95ba612081f49b59071fe58442 | |
parent | 52b696c7adf16cd7e5531d113e7b79399a682a12 (diff) | |
download | bcm5719-llvm-7c22c9dcdd683ec42c86f3cd54b87f112a250426.tar.gz bcm5719-llvm-7c22c9dcdd683ec42c86f3cd54b87f112a250426.zip |
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
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 9ddee607015..79be1625209 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, |