Skip to content

Commit 9d5ad5e

Browse files
author
Johannes Doerfert
committed
[Attributor][FIX] Silence sign-compare warning
llvm-svn: 375384
1 parent 3839b57 commit 9d5ad5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/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)