Change getelementptr folding to use APInt instead of uint64_t for
authorDan Gohman <gohman@apple.com>
Fri, 21 Aug 2009 16:52:54 +0000 (16:52 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 21 Aug 2009 16:52:54 +0000 (16:52 +0000)
commitcda9706cb74a65d2feb2175613cb0fe46acc5aa2
treead4658de533a7d96ef1f9234f884c19507b4ba31
parent3b83287c4ec1c29047176dac94e2b7e302aac6bf
Change getelementptr folding to use APInt instead of uint64_t for
offset computations. This fixes a truncation bug on targets that
don't have 64-bit pointers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79639 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/InstCombine/constant-fold-gep-overindex.ll