This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Minor cleanup to use default setting of getLastArg()
ClosedPublic

Authored by maxim-kuvyrkov on Mar 12 2021, 5:11 AM.

Details

Summary

Noticed this while I was looking at linker defaults.

Diff Detail

Event Timeline

maxim-kuvyrkov requested review of this revision.Mar 12 2021, 5:11 AM
maxim-kuvyrkov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2021, 5:11 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Fixed thinko: GetLastArg -> GetLastArgValue

asl accepted this revision.Mar 17 2021, 12:13 PM

Looks trivial enough for post-commit review :)

This revision is now accepted and ready to land.Mar 17 2021, 12:13 PM
This revision was landed with ongoing or failed builds.Mar 18 2021, 12:48 AM
This revision was automatically updated to reflect the committed changes.

The patch was wrong. We use "const Arg *A" at the end of GetLinkerPath, so can't remove it. I thought I tested this, but, apparently, not.

Reverted in 62948c4532d59b59f63409eae5d7f9e4990e5626 .

asl added a comment.Mar 18 2021, 1:14 AM

Indeed! And even worse, there is another 'A' shadowing definition below :)