Skip to content

Commit 3ba0ff6

Browse files
authored
[CIR][NFC] Remove duplicate VisitCXXNoexceptExpr (llvm#171624)
Remove duplicate VisitCXXNoexceptExpr to fix building ClangIR
1 parent 136e5e2 commit 3ba0ff6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,10 +865,6 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
865865
cgf.emitCXXThrowExpr(e);
866866
return {};
867867
}
868-
mlir::Value VisitCXXNoexceptExpr(CXXNoexceptExpr *e) {
869-
cgf.cgm.errorNYI(e->getSourceRange(), "ScalarExprEmitter: cxx noexcept");
870-
return {};
871-
}
872868

873869
mlir::Value VisitCXXNoexceptExpr(CXXNoexceptExpr *e) {
874870
return builder.getBool(e->getValue(), cgf.getLoc(e->getExprLoc()));

0 commit comments

Comments
 (0)