This is an archive of the discontinued LLVM Phabricator instance.

[OpaquePtr][LLParser] Explicitly turn off opaque pointers if we see a star
ClosedPublic

Authored by aeubanks on May 16 2022, 5:03 PM.

Details

Summary

If we turn on --opaque-pointers, tests with '*' would use opaque pointers.

Can't really test this without flipping the default value for --opaque-pointers.

Diff Detail

Event Timeline

aeubanks created this revision.May 16 2022, 5:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 5:03 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
aeubanks requested review of this revision.May 16 2022, 5:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 5:03 PM
aeubanks added a reviewer: Restricted Project.May 16 2022, 5:03 PM
nikic accepted this revision.May 17 2022, 12:47 AM
nikic added a subscriber: nikic.

LG. This seems like a good path towards wider default-enablement of opaque pointers without updating all the tests first.

llvm/lib/AsmParser/LLParser.cpp
70

For anyone else confused, this whole code only runs with !hasSetOpaquePointersValue(), so no need to check it here.

This revision is now accepted and ready to land.May 17 2022, 12:47 AM