zext(undef) = 0 and sext(undef) = 0, not undef.
authorChris Lattner <sabre@nondot.org>
Fri, 20 Jul 2007 22:09:02 +0000 (22:09 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Jul 2007 22:09:02 +0000 (22:09 +0000)
commitd2f09965e6ba462c4728ff4d5c79b0d0d20ec47f
tree5fad7bc2be699ab18d7a6897cd439298a1d06ee9
parent3ccc6bc61c40616334459b553b3083e6e534f126
zext(undef) = 0 and sext(undef) = 0, not undef.
This hopefully fixes a miscompilation of TargetData.cpp when self hosting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40125 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp