Skip to content

Commit 08f367c

Browse files
committed
Missing features
1 parent dee237f commit 08f367c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clang/include/clang/CIR/MissingFeatures.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ struct MissingFeatures {
228228
static bool xray() { return false; }
229229
static bool emitConstrainedFPCall() { return false; }
230230
static bool emitEmptyRecordCheck() { return false; }
231+
static bool emitBinaryAtomicPostHasInvert() { return false; }
231232

232233
// Inline assembly
233234
static bool asmGoto() { return false; }

clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ static RValue emitBinaryAtomicPost(CIRGenFunction &cgf,
290290
clang::CIRGen::CIRGenBuilderTy &builder = cgf.getBuilder();
291291
result = builder.create<cir::BinOp>(result.getLoc(), binopKind, result, val);
292292
result = emitFromInt(cgf, result, typ, valueType);
293+
assert(!MissingFeatures::emitBinaryAtomicPostHasInvert());
293294
return RValue::get(result);
294295
}
295296

0 commit comments

Comments
 (0)