Don't assign the shift the same type as the variable being shifted. This could
authorBill Wendling <isanbard@gmail.com>
Tue, 5 Jan 2010 22:39:10 +0000 (22:39 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 5 Jan 2010 22:39:10 +0000 (22:39 +0000)
commit9f7c5c0dca1e63bca39eb6511e8847b02030cb1f
treef330e40b9e79967867dc25065c6c2ad0f9e1cd90
parent83142991613730bc857739c6179660ccffebe379
Don't assign the shift the same type as the variable being shifted. This could
result in illegal types for the SHL operator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92797 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/2010-01-05-ZExt-Shl.ll [new file with mode: 0644]