statepoint intrinsic can be used in invoke context, so it should be handled in visitCallBase
to cover both call and invoke.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yes, they can throw.
See https://llvm.org/docs/Statepoints.html#gc-statepoint. As an example,
"Note that semantically the statepoint still represents a call or invoke to ‘target’, and the nop sequence after patching is expected to represent an operation equivalent to a call or invoke to ‘target’."
Add default: break.
Otherwise, you'll get uncovered-switch warnings on many build bots.