Author: Andy Kaylor
Date: 2025-05-21T13:23:01-07:00
New Revision: 08279d3924a86371e96527f68ff7496e51581f9c

URL: 
https://github.com/llvm/llvm-project/commit/08279d3924a86371e96527f68ff7496e51581f9c
DIFF: 
https://github.com/llvm/llvm-project/commit/08279d3924a86371e96527f68ff7496e51581f9c.diff

LOG: [CIR] Improve NYI message for emitCompoundStmtWithoutScope (#140945)

This improves the error emitting for unhandled compound statements
without scope by reporting the statement class that wasn't handled.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp 
b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index cc96e65e4ce1d..4187762741808 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
@@ -26,7 +26,9 @@ using namespace cir;
 void CIRGenFunction::emitCompoundStmtWithoutScope(const CompoundStmt &s) {
   for (auto *curStmt : s.body()) {
     if (emitStmt(curStmt, /*useCurrentScope=*/false).failed())
-      getCIRGenModule().errorNYI(curStmt->getSourceRange(), "statement");
+      getCIRGenModule().errorNYI(curStmt->getSourceRange(),
+                                 std::string("emitCompoundStmtWithoutScope: ") 
+
+                                     curStmt->getStmtClassName());
   }
 }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to