]> granicus.if.org Git - clang/commit
PR9350: increment/decrement of char (and anything else narrower than int)
authorEli Friedman <eli.friedman@gmail.com>
Wed, 2 Mar 2011 01:49:12 +0000 (01:49 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 2 Mar 2011 01:49:12 +0000 (01:49 +0000)
commitfa0b409ef81f1f70edfa72857c4e211ff50998d5
tree23ee7de26fdfc8a32bbd7f2f83240624d69ec8b1
parentdb04e2e26dd991ecddb6badf8c91ee46de80c31c
PR9350: increment/decrement of char (and anything else narrower than int)
can't overflow due to promotion rules; emit a wrapping add for those cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126816 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/integer-overflow.c