LGTM with the comment here. Best to wait for an ok from Philip too before committing. ================ Comment at: lib/Transforms/Utils/LowerSwitch.cpp:142 @@ +141,3 @@ + + if (PN == nullptr) + continue; ---------------- This can just be (!PN) http://reviews.llvm.org/D4298