[LLVM][IR] Fixed input arguments for Verifier getter
authorAlfsonso Gregory <gfunni234@gmail.com>
Sun, 3 Oct 2021 02:37:12 +0000 (08:07 +0530)
committerShivam Gupta <shivam98.tkg@gmail.com>
Sun, 3 Oct 2021 02:39:30 +0000 (08:09 +0530)
commit060a96a7b5d57cc8a64f84a3d40a34d015089085
tree345e9ef0d1808fc6f65efe0b34735da1f0ccc7d6
parente8806d748643e4b90fa67ed6f4819653e64e66d9
[LLVM][IR] Fixed input arguments for Verifier getter

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.

Reviewed By: jeroen.dobbelaere

Differential Revision: https://reviews.llvm.org/D110344
llvm/lib/IR/Verifier.cpp