[clang] 3ba0ff6 - [CIR][NFC] Remove duplicate VisitCXXNoexceptExpr (#171624)

via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 10 06:27:22 PST 2025


Author: Amr Hesham
Date: 2025-12-10T15:27:18+01:00
New Revision: 3ba0ff61390255764a66f4876e2d5a6f8259d4e8

URL: https://github.com/llvm/llvm-project/commit/3ba0ff61390255764a66f4876e2d5a6f8259d4e8
DIFF: https://github.com/llvm/llvm-project/commit/3ba0ff61390255764a66f4876e2d5a6f8259d4e8.diff

LOG: [CIR][NFC] Remove duplicate VisitCXXNoexceptExpr (#171624)

Remove duplicate VisitCXXNoexceptExpr to fix building ClangIR

Added: 
    

Modified: 
    clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
index f1aa42f98dffe..929714e54531e 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
@@ -865,10 +865,6 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
     cgf.emitCXXThrowExpr(e);
     return {};
   }
-  mlir::Value VisitCXXNoexceptExpr(CXXNoexceptExpr *e) {
-    cgf.cgm.errorNYI(e->getSourceRange(), "ScalarExprEmitter: cxx noexcept");
-    return {};
-  }
 
   mlir::Value VisitCXXNoexceptExpr(CXXNoexceptExpr *e) {
     return builder.getBool(e->getValue(), cgf.getLoc(e->getExprLoc()));


        


More information about the cfe-commits mailing list