diff options
author | Amr Hesham <amr96@programmer.net> | 2025-09-02 19:34:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-02 19:34:58 +0200 |
commit | 3ed91d880996976303e31b1900fb1fba9cd3ab44 (patch) | |
tree | e5d4fde87691e09a5e16fbeeb3cae4bf5371cd59 | |
parent | 9b2c6052a8668711fb18844f557e229adb0306a1 (diff) | |
download | llvm-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.cpp | 4 |
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()); |