[clang] [CIR][NFC] Fix build issue after AST modification (PR #156493)
https://github.com/mmha approved this pull request. LGTM, Thanks! For the record, this was caused by #152870. https://github.com/llvm/llvm-project/pull/156493 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [CIR][NFC] Fix build issue after AST modification (PR #156493)
https://github.com/AmrDeveloper created
https://github.com/llvm/llvm-project/pull/156493
Fix the build issue after AST modification
>From 5462713936149bca0ba186dc48d104679b8ee2df Mon Sep 17 00:00:00 2001
From: AmrDeveloper
Date: Tue, 2 Sep 2025 19:00:35 +0200
Subject: [PATCH] [CIR][NFC] Fix build issue after AST modification
---
clang/lib/CIR/CodeGen/CIRGenStmt.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index 3b0eabe92284b..12821c1dae0c1 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
@@ -508,7 +508,7 @@ mlir::LogicalResult CIRGenFunction::emitGotoStmt(const
clang::GotoStmt &s) {
mlir::LogicalResult
CIRGenFunction::emitContinueStmt(const clang::ContinueStmt &s) {
- builder.createContinue(getLoc(s.getContinueLoc()));
+ builder.createContinue(getLoc(s.getKwLoc()));
// Insert the new block to continue codegen after the continue statement.
builder.createBlock(builder.getBlock()->getParent());
@@ -543,7 +543,7 @@ mlir::LogicalResult CIRGenFunction::emitLabel(const
clang::LabelDecl &d) {
}
mlir::LogicalResult CIRGenFunction::emitBreakStmt(const clang::BreakStmt &s) {
- builder.createBreak(getLoc(s.getBreakLoc()));
+ builder.createBreak(getLoc(s.getKwLoc()));
// Insert the new block to continue codegen after the break statement.
builder.createBlock(builder.getBlock()->getParent());
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [CIR][NFC] Fix build issue after AST modification (PR #156493)
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/156493 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [CIR][NFC] Fix build issue after AST modification (PR #156493)
https://github.com/AmrDeveloper updated
https://github.com/llvm/llvm-project/pull/156493
>From 5462713936149bca0ba186dc48d104679b8ee2df Mon Sep 17 00:00:00 2001
From: AmrDeveloper
Date: Tue, 2 Sep 2025 19:00:35 +0200
Subject: [PATCH] [CIR][NFC] Fix build issue after AST modification
---
clang/lib/CIR/CodeGen/CIRGenStmt.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index 3b0eabe92284b..12821c1dae0c1 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
@@ -508,7 +508,7 @@ mlir::LogicalResult CIRGenFunction::emitGotoStmt(const
clang::GotoStmt &s) {
mlir::LogicalResult
CIRGenFunction::emitContinueStmt(const clang::ContinueStmt &s) {
- builder.createContinue(getLoc(s.getContinueLoc()));
+ builder.createContinue(getLoc(s.getKwLoc()));
// Insert the new block to continue codegen after the continue statement.
builder.createBlock(builder.getBlock()->getParent());
@@ -543,7 +543,7 @@ mlir::LogicalResult CIRGenFunction::emitLabel(const
clang::LabelDecl &d) {
}
mlir::LogicalResult CIRGenFunction::emitBreakStmt(const clang::BreakStmt &s) {
- builder.createBreak(getLoc(s.getBreakLoc()));
+ builder.createBreak(getLoc(s.getKwLoc()));
// Insert the new block to continue codegen after the break statement.
builder.createBlock(builder.getBlock()->getParent());
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
