Fix a bug with inttoptr/ptrtoint casts where the pointer has a different
authorDan Gohman <gohman@apple.com>
Thu, 16 Apr 2009 19:25:55 +0000 (19:25 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 16 Apr 2009 19:25:55 +0000 (19:25 +0000)
commit8170a6849ed370059676f94d8a00ae652873a394
tree36aef840f9443704bb9d58e8fd8f4eb7ecdaaba4
parent02f8c410148ba3b6009ed67df41e2c97c1c07c3a
Fix a bug with inttoptr/ptrtoint casts where the pointer has a different
size from the integer, requiring zero extension or truncation. Don't
create ZExtInsts with pointer types. This fixes a regression in
consumer-jpeg.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69307 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
lib/Analysis/ScalarEvolutionExpander.cpp