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
This commit is contained in:
parent
52b696c7ad
commit
7c22c9dcdd
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue