]> granicus.if.org Git - clang/commit
Pointer width on targets like PIC16 is 16-bit, while the valid index size to GEP...
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Wed, 8 Apr 2009 04:16:39 +0000 (04:16 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Wed, 8 Apr 2009 04:16:39 +0000 (04:16 +0000)
commit75c47a5cdf480571a71935cf80d49f802fec15a3
treec30a97af0ca74ad99bfccd6f08747eed4a8d5684
parent837e897660a527cfe2b443ae7303f6cc8ba99a83
Pointer width on targets like PIC16 is 16-bit, while the valid index size to GEP is only 32 or 64. So promote index to 32 in such cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68590 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprScalar.cpp