InstCombine: Fix a combine assuming that icmp operands were integers
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 27 Oct 2014 05:47:49 +0000 (05:47 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 27 Oct 2014 05:47:49 +0000 (05:47 +0000)
commitfe58be3733715dd30807e9aaa31500be456ecf53
tree19a09837dda4d537ab952a378881c5f68777b5d3
parente250b13ab9728e07308672056905936db53ad855
InstCombine: Fix a combine assuming that icmp operands were integers

An icmp may have pointer arguments, it isn't limited to integers or
vectors of integers.

This fixes PR21388.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220664 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/cast.ll