Skip to content

Commit 3ed91d8

Browse files
authored
[CIR][NFC] Fix build issue after AST modification (#156493)
Fix the build issue after AST modification
1 parent 9b2c605 commit 3ed91d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenStmt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ mlir::LogicalResult CIRGenFunction::emitGotoStmt(const clang::GotoStmt &s) {
508508

509509
mlir::LogicalResult
510510
CIRGenFunction::emitContinueStmt(const clang::ContinueStmt &s) {
511-
builder.createContinue(getLoc(s.getContinueLoc()));
511+
builder.createContinue(getLoc(s.getKwLoc()));
512512

513513
// Insert the new block to continue codegen after the continue statement.
514514
builder.createBlock(builder.getBlock()->getParent());
@@ -543,7 +543,7 @@ mlir::LogicalResult CIRGenFunction::emitLabel(const clang::LabelDecl &d) {
543543
}
544544

545545
mlir::LogicalResult CIRGenFunction::emitBreakStmt(const clang::BreakStmt &s) {
546-
builder.createBreak(getLoc(s.getBreakLoc()));
546+
builder.createBreak(getLoc(s.getKwLoc()));
547547

548548
// Insert the new block to continue codegen after the break statement.
549549
builder.createBlock(builder.getBlock()->getParent());

0 commit comments

Comments
 (0)