This is an archive of the discontinued LLVM Phabricator instance.

[DarwinDriver] Increase the number of valid digits for ld version string
ClosedPublic

Authored by bruno on Mar 20 2016, 11:26 AM.

Diff Detail

Event Timeline

bruno updated this revision to Diff 51131.Mar 20 2016, 11:26 AM
bruno retitled this revision from to [DarwinDriver] Increase the number of valid digits for ld version string.
bruno updated this object.
bruno added reviewers: bob.wilson, dexonsmith.
bruno added a subscriber: cfe-commits.
rnk added a subscriber: rnk.Mar 28 2016, 11:03 AM
rnk added inline comments.
lib/Driver/Driver.cpp
2541

You don't need a MaxDigits parameter, it's the same as Digits.size().

bruno updated this revision to Diff 51828.Mar 28 2016, 1:12 PM

Thanks Reid. The original idea was to have MaxDigits despite the size of the input array (but bounded by its size). But since there are no other users up to this point, your suggestion seems better, updated the patch to reflect it.

dexonsmith edited edge metadata.Mar 30 2016, 3:45 PM
dexonsmith added a subscriber: dexonsmith.

LGTM from the Darwin-side, assuming Reid doesn't have any more comments.

rnk accepted this revision.Mar 30 2016, 4:23 PM
rnk added a reviewer: rnk.

lgtm, go for it

lib/Driver/Driver.cpp
2549–2550

nit: Why not CurDigit < Digits.size()?

This revision is now accepted and ready to land.Mar 30 2016, 4:23 PM
bruno added a comment.Mar 30 2016, 7:55 PM

Committed r264987!

lib/Driver/Driver.cpp
2549–2550

No specific reason. Done!

bruno closed this revision.Mar 30 2016, 7:56 PM