Skip to content

Commit 6c1fb12

Browse files
committed
fix abi (again)
1 parent b828851 commit 6c1fb12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Sema/SemaStmt.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ void DiagnoseUnused(Sema &S, const Expr *E, std::optional<unsigned> DiagID) {
413413
}
414414
} // namespace
415415

416+
void Sema::DiagnoseDiscardedExprMarkedNodiscard(const Expr *E) {
417+
DiagnoseUnused(*this, E, std::nullopt);
418+
}
419+
416420
void Sema::DiagnoseUnusedExprResult(const Stmt *S, unsigned DiagID) {
417421
if (const LabelStmt *Label = dyn_cast_if_present<LabelStmt>(S))
418422
S = Label->getSubStmt();

0 commit comments

Comments
 (0)