ConstantFolding: Guard use of getFunction
Add additional guards for a use of getFunction on an Instruction In some cases constanfFoldCanonicalize can be called with a cloned instruction that doesn't have a parent (or associated function), causing a seg fault. Differential Revision: https://reviews.llvm.org/D138642
Loading
Please sign in to comment