Skip to content

Commit

Permalink
Missing features
Browse files Browse the repository at this point in the history
  • Loading branch information
ghehg committed Nov 10, 2024
1 parent dee237f commit 08f367c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/include/clang/CIR/MissingFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ struct MissingFeatures {
static bool xray() { return false; }
static bool emitConstrainedFPCall() { return false; }
static bool emitEmptyRecordCheck() { return false; }
static bool emitBinaryAtomicPostHasInvert() { return false; }

// Inline assembly
static bool asmGoto() { return false; }
Expand Down
1 change: 1 addition & 0 deletions clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ static RValue emitBinaryAtomicPost(CIRGenFunction &cgf,
clang::CIRGen::CIRGenBuilderTy &builder = cgf.getBuilder();
result = builder.create<cir::BinOp>(result.getLoc(), binopKind, result, val);
result = emitFromInt(cgf, result, typ, valueType);
assert(!MissingFeatures::emitBinaryAtomicPostHasInvert());
return RValue::get(result);
}

Expand Down

0 comments on commit 08f367c

Please sign in to comment.