andrew.w.kaylor added inline comments. ================ Comment at: lib/Transforms/Utils/InlineFunction.cpp:371 @@ +370,3 @@ + Replacement->takeName(I); + I->eraseFromParent(); + UpdatePHINodes(&*BB); ---------------- This needs an RAUW for the catchswitch case. http://reviews.llvm.org/D15139