Fix a thinko. If the operand is promoted, pass the promoted value into
authorChris Lattner <sabre@nondot.org>
Sun, 10 Apr 2005 01:13:15 +0000 (01:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Apr 2005 01:13:15 +0000 (01:13 +0000)
commitdea29e25c32d2651e2efaff67bc30803ea24d991
treeadf4e8d1535544668ba651f1146b11a214618efc
parent51d2ed976f30913e173536e244d9f0e7259e4b1e
Fix a thinko.  If the operand is promoted, pass the promoted value into
the new zero extend, not the original operand.  This fixes cast bool -> long
on ppc.

Add an unrelated fixme

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21196 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp