Skip to content

Commit 9de972e

Browse files
authored
[clang] Fix FnInfoOpts::operator&= and FnInfoOpts::operator|= not updating assigned operands (#107050)
This affects CodeGenTypes::arrangeCall. No test because the only current in-tree use of that function isn't affected.
1 parent f32e5bd commit 9de972e

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)