Fix a bug in DAGCombiner::MatchBSwapHWord. Make sure the node has operands before...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 13 Dec 2012 01:34:32 +0000 (01:34 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 13 Dec 2012 01:34:32 +0000 (01:34 +0000)
commit9a65a01eeb97cdc10ca6b97ade3f9f8aba11fa9f
treed376ded4c446a84b0834cee60526d031460ffb5e
parentb573539c6b47d020ade2e41c0ff3afcd00f294f4
Fix a bug in DAGCombiner::MatchBSwapHWord. Make sure the node has operands before referencing them. rdar://12868039

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170078 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/2012-12-12-DAGCombineCrash.ll [new file with mode: 0644]