Skip to content

Commit 02ec3af

Browse files
committed
slience warning
1 parent 5d61e1d commit 02ec3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ir/attrs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ StateValue ParamAttrs::encode(State &s, StateValue &&val, const Type &ty,
431431
if (ty.isPtrType()) {
432432
val.non_poison &=
433433
encodePtrAttrs(s, val.value, getDerefBytes(), derefOrNullBytes, align,
434-
has(NonNull), has(NoCapture) | has(ByVal), has(Writable),
434+
has(NonNull), has(NoCapture) || has(ByVal), has(Writable),
435435
{}, nullptr, isdecl, false);
436436

437437
if (!initializes.empty()) {

0 commit comments

Comments
 (0)