commit | a52ad4e1f423bed2e9e0dcb12661268091d20a54 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Wed Aug 05 02:51:59 2009 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Wed Aug 05 02:51:59 2009 +0000 |
tree | de313e0dec81f4c759eb1bf1edc1adf85e8f372c | |
parent | 11b3a95d1698c033691fce6cd444201668ba3e0a [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