aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-06 02:00:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-06 02:00:38 +0000
commit8c6f57c38b1451bb28945876b0d147fd2f26e6d3 (patch)
treeec9b5ab747eb258f4a446f77cf98066f18616d49 /lib/CodeGen/CGExprAgg.cpp
parenta735ad8be5536a1cd3e9817ec27dfeb2a0c1d5ca (diff)
Fix CodeGen of pointer arithmetic in compound assignment statements.
- Changed EmitSub to work on all cases (arithmetic, ptr - int, ptr - ptr) so that implementation matches that of other operators. - Modify EmitCompoundAssign to compute and perform the appropriate casts of left, right, and result types for the assorted pointer arithmetic cases. - Fix EmitSub (ptr - int) case to negate the rhs *after* extension. This is critical when the rhs is unsigned (and needs extension). - This fixes cfrac. - <rdr://6115726> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions