Fixup PHIs in LowerSwitch when a Leaf node is not emitted.
authorMarcello Maggioni <hayarms@gmail.com>
Fri, 11 Jul 2014 10:34:36 +0000 (10:34 +0000)
committerMarcello Maggioni <hayarms@gmail.com>
Fri, 11 Jul 2014 10:34:36 +0000 (10:34 +0000)
commit78035b11ecfdfc22fe4ac77662d242d1183f8367
treed05f0560ea6279e6131d7ebfbb2f4328a65448c9
parent9c62621c4b3b55f51ca307388e9671e4356b3d17
Fixup PHIs in LowerSwitch when a Leaf node is not emitted.

This commit fixes bug http://llvm.org/bugs/show_bug.cgi?id=20103.

Thanks to Qwertyuiop for the report and the proposed fix.

llvm-svn: 212802
llvm/lib/Transforms/Utils/LowerSwitch.cpp