Skip to content

Commit c6a6b57

Browse files
committed
[AMDGPU] [NFC] Fix incorrect use of bitwise operator.
Differential Revision: https://reviews.llvm.org/D119308
1 parent 1d97cb1 commit c6a6b57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,10 @@ struct AAAMDAttributesFunction : public AAAMDAttributes {
397397
}
398398
}
399399

400-
NeedsQueuePtr |= checkForQueuePtr(A);
400+
if (!NeedsQueuePtr) {
401+
NeedsQueuePtr = checkForQueuePtr(A);
402+
}
403+
401404
if (NeedsQueuePtr) {
402405
removeAssumedBits(QUEUE_PTR);
403406
}

0 commit comments

Comments
 (0)