Skip to content

Commit 6a12eda

Browse files
committed
address comment
1 parent 623e6fe commit 6a12eda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,9 @@ static RValue emitBinaryAtomicPost(CIRGenFunction &cgf,
302302
makeBinaryAtomicValue(cgf, atomicOpkind, e, &val, &valueType);
303303
clang::CIRGen::CIRGenBuilderTy &builder = cgf.getBuilder();
304304
result = builder.create<cir::BinOp>(result.getLoc(), binopKind, result, val);
305-
if (invert) {
305+
if (invert)
306306
result = builder.create<cir::UnaryOp>(result.getLoc(),
307307
cir::UnaryOpKind::Not, result);
308-
}
309308
result = emitFromInt(cgf, result, typ, valueType);
310309
return RValue::get(result);
311310
}

0 commit comments

Comments
 (0)