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.
Details
Details
- Reviewers
arsenm - Commits
- rG62498962e42d: ConstantFolding: Guard use of getFunction
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Actually, this shows there's a bug here. getFunction shouldn't be relevant The call below should be looking at the parent function