This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Replace use of Type::getPointerTo() (NFC)
ClosedPublic

Authored by JOE1994 on Jun 19 2023, 3:14 PM.

Details

Summary

Partial progress towards replacing in-tree uses of
Type::getPointerTo().

If getPointerTo() is used solely to support an unnecessary bitcast,
remove the bitcast.

Diff Detail

Event Timeline

JOE1994 created this revision.Jun 19 2023, 3:14 PM
JOE1994 requested review of this revision.Jun 19 2023, 3:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2023, 3:14 PM

Checked that no new regressions occur with ninja check-clang & ninja check-llvm.

Used git clang-format for formatting affected lines.

nikic accepted this revision.Jun 20 2023, 12:36 AM

LGTM

If you haven't done so yet, can you please apply for commit access as described in https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access?

This revision is now accepted and ready to land.Jun 20 2023, 12:36 AM
barannikov88 accepted this revision.Jun 20 2023, 2:10 AM
This revision was automatically updated to reflect the committed changes.

I've acquired commit access today, and pushed the commit to llvm-project main.
Thank you for taking the time to review this revision!