This is an archive of the discontinued LLVM Phabricator instance.

Change dyn_cast to cast
ClosedPublic

Authored by yubing on Apr 10 2023, 2:16 AM.

Diff Detail

Event Timeline

yubing created this revision.Apr 10 2023, 2:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 2:16 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
yubing requested review of this revision.Apr 10 2023, 2:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 2:16 AM

InvokeInst inherits CallBase so it is ok to use cast<CallBase>(TI) after isa<InvokeInst>(TI)

pengfei accepted this revision.Apr 10 2023, 8:26 AM

LGTM.

This revision is now accepted and ready to land.Apr 10 2023, 8:26 AM
This revision was automatically updated to reflect the committed changes.