Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix inc/dec to honor -fwrapv and -ftrapv, implementing PR7426. | Chris Lattner | 2010-06-26 | 1 | -5/+17 |
| | | | | llvm-svn: 106962 | ||||
* | Fix unary minus to trap on overflow with -ftrapv, refactoring binop | Chris Lattner | 2010-06-26 | 1 | -1/+1 |
| | | | | | | code so we can use it from VisitUnaryMinus. llvm-svn: 106957 | ||||
* | Implement support for -fwrapv, rdar://7221421 | Chris Lattner | 2010-06-26 | 1 | -0/+33 |
As part of this, pull together trapv handling into the same enum. This also add support for NSW multiplies. This also makes PCH disagreement on overflow behavior silent, since it really doesn't matter except for warnings and codegen (no macros get defined etc). llvm-svn: 106956 |