Invoke instructions are terminators which produce results. They can match operand descriptor in which case we are going to insert load or store operation right after invoke . In this change I decided to exclude invokes from findPointer candidates altogether in order to avoid this kind of problems.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/FuzzMutate/RandomIRBuilder.cpp | ||
---|---|---|
156–157 ↗ | (On Diff #125533) | Would isa<TerminatorInst> or whatever work here? I guess this is the only case, but it seems fine to be more general. |
Comment Actions
Hi Justin, I updated the diff to bail on all TerminatorInsts. I agree that it's better to be more general here.