This is an archive of the discontinued LLVM Phabricator instance.

[nfc][llvm] Replace pointer cast functions in PointerUnion by llvm casting functions.
ClosedPublic

Authored by shraiysh on Apr 15 2023, 10:19 PM.

Details

Summary

This patch replaces the uses of PointerUnion.is function by llvm::isa,
PointerUnion.get function by llvm::cast, and PointerUnion.dyn_cast by
llvm::dyn_cast_if_present. This is according to the FIXME in
the definition of the class PointerUnion.

This patch does not remove them as they are being used in other
subprojects.

Diff Detail

Event Timeline

shraiysh created this revision.Apr 15 2023, 10:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2023, 10:20 PM
Herald added subscribers: pmatos, asb, ormris and 5 others. · View Herald Transcript
shraiysh requested review of this revision.Apr 15 2023, 10:20 PM
mehdi_amini accepted this revision.Apr 16 2023, 4:20 PM

Thanks!

This revision is now accepted and ready to land.Apr 16 2023, 4:20 PM
This revision was landed with ongoing or failed builds.Apr 17 2023, 11:40 AM
This revision was automatically updated to reflect the committed changes.