aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmr Hesham <amr96@programmer.net>2025-09-02 19:34:58 +0200
committerGitHub <noreply@github.com>2025-09-02 19:34:58 +0200
commit3ed91d880996976303e31b1900fb1fba9cd3ab44 (patch)
treee5d4fde87691e09a5e16fbeeb3cae4bf5371cd59
parent9b2c6052a8668711fb18844f557e229adb0306a1 (diff)
downloadllvm-3ed91d880996976303e31b1900fb1fba9cd3ab44.zip
llvm-3ed91d880996976303e31b1900fb1fba9cd3ab44.tar.gz
llvm-3ed91d880996976303e31b1900fb1fba9cd3ab44.tar.bz2
[CIR][NFC] Fix build issue after AST modification (#156493)
Fix the build issue after AST modification
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenStmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index 3b0eabe..12821c1 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());