Skip to content

Commit e542003

Browse files
committed
[clang] Fix bug of FnInfoOpts::operator&= and FnInfoOpts::operator|= not updating assigned operands
1 parent c28b1a1 commit e542003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CodeGen/CGCall.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,12 @@ inline FnInfoOpts operator&(FnInfoOpts A, FnInfoOpts B) {
450450
llvm::to_underlying(B));
451451
}
452452

453-
inline FnInfoOpts operator|=(FnInfoOpts A, FnInfoOpts B) {
453+
inline FnInfoOpts &operator|=(FnInfoOpts &A, FnInfoOpts B) {
454454
A = A | B;
455455
return A;
456456
}
457457

458-
inline FnInfoOpts operator&=(FnInfoOpts A, FnInfoOpts B) {
458+
inline FnInfoOpts &operator&=(FnInfoOpts &A, FnInfoOpts B) {
459459
A = A & B;
460460
return A;
461461
}

0 commit comments

Comments
 (0)