[DAG] fix type of undef returned by getNode()
authorSanjay Patel <spatel@rotateright.com>
Tue, 13 Feb 2018 14:55:07 +0000 (14:55 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 13 Feb 2018 14:55:07 +0000 (14:55 +0000)
commit907b58530f19d1c5d1e02b0d67e9255f0e70c869
treef51c676cac18bfccaabd562c4c075be17bc49081
parent35d744d388aa6ab325036f3dfd258b4c39ade1bc
[DAG] fix type of undef returned by getNode()

The bug has been lying dormant, but apparently was never exposed, until
after rL324941 because we didn't return the correct result
for shifts with undef operands.

llvm-svn: 325010
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/undef-ops.ll