]> granicus.if.org Git - clang/commit
Evaluate: Fix a subtle bug in the pointer evaluator in which we would do an
authorDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 05:53:45 +0000 (05:53 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 05:53:45 +0000 (05:53 +0000)
commite0cdb4edd8f265d0fd22d178d03c597dd201cda2
tree4ff2a875da1d9c535c0c069552636f4fb85275a9
parent0a80ba74ffa3d3df55abfbc4474d7470c7c923e3
Evaluate: Fix a subtle bug in the pointer evaluator in which we would do an
expression computation in the wrong bit-width, and end up generating a totally
bogus array reference (_g0+8589934546).
 - This showed up on Prolangs/cdecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99042 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/CodeGen/const-arithmetic.c [new file with mode: 0644]