This is an archive of the discontinued LLVM Phabricator instance.

[LLVM][IR] Fixed input arguments for Verifier getter
ClosedPublic

Authored by gAlfonso-bit on Sep 23 2021, 9:38 AM.

Details

Summary

ParameterABIAttributes functions work with unsigned integers as the index, so having the getter be signed makes no sense. Additionally, for this reason, the loop vars that were signed were changed to unsigned too.

Diff Detail

Event Timeline

gAlfonso-bit created this revision.Sep 23 2021, 9:38 AM
gAlfonso-bit requested review of this revision.Sep 23 2021, 9:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2021, 9:38 AM
gAlfonso-bit retitled this revision from [LLVM][IR] Fixed input arguments and resolved FIXME to [LLVM][IR] Fixed input arguments for Verifier getter.
gAlfonso-bit edited the summary of this revision. (Show Details)
gAlfonso-bit edited reviewers, added: hiraditya; removed: jdoerfert.Sep 25 2021, 6:02 AM
gAlfonso-bit removed a reviewer: Restricted Project.

LGTM except for the unrelated change in line 6249.

llvm/lib/IR/Verifier.cpp
6250

This change should not be part of this commit.

gAlfonso-bit marked an inline comment as done.

Removed unneeded change

This revision is now accepted and ready to land.Sep 30 2021, 9:53 AM

I do not have commit access. Could someone please land this for me?

This revision was automatically updated to reflect the committed changes.
xgupta added a subscriber: xgupta.Oct 2 2021, 8:23 PM

Small request- Please add a [NFC] tag in such patches from next time.