aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-08-05 02:51:59 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-08-05 02:51:59 +0000
commita52ad4e1f423bed2e9e0dcb12661268091d20a54 (patch)
treede313e0dec81f4c759eb1bf1edc1adf85e8f372c /lib/CodeGen/CodeGenModule.cpp
parent11b3a95d1698c033691fce6cd444201668ba3e0a (diff)
If the UnaryOperator has non-location type, use its type to create the
constant value. If the UnaryOperator has location type, create the constant with int type and pointer width. This fixes the bug that all pointer increments 'p++' evaluated to Unknown. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions