MergeFunc: Make pointer and integer types generate the same hash.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Apr 2013 23:06:44 +0000 (23:06 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Apr 2013 23:06:44 +0000 (23:06 +0000)
commit24a5f30f77fa2890329fa3a9165b54c13bbd51e7
tree886d3726a2582c1155e46d10a219c16b79f47743
parentdf0d1855ca88023bfcb81eb8812cdc718268ac4d
MergeFunc: Make pointer and integer types generate the same hash.

The logic that actually compares the types considers pointers and integers the
same if they are of the same size. This created a strange mismatch between hash
and reality and made the test case for this fail on some platforms (yay,
test cases).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp
test/Transforms/MergeFunc/inttoptr.ll