Skip to content

Commit cd2c099

Browse files
author
Johannes Doerfert
committed
[Attributor][FIX] Silence sign-compare warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375384 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 463d821 commit cd2c099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Transforms/IPO/Attributor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,7 @@ struct AANoCaptureImpl : public AANoCapture {
29942994
if (F.doesNotThrow() && ArgNo >= 0) {
29952995
for (unsigned u = 0, e = F.arg_size(); u< e; ++u)
29962996
if (F.hasParamAttribute(u, Attribute::Returned)) {
2997-
if (u == ArgNo)
2997+
if (u == unsigned(ArgNo))
29982998
State.removeAssumedBits(NOT_CAPTURED_IN_RET);
29992999
else if (F.onlyReadsMemory())
30003000
State.addKnownBits(NO_CAPTURE);

0 commit comments

Comments
 (0)