File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ mlir::LogicalResult CIRGenFunction::emitGotoStmt(const clang::GotoStmt &s) {
508508
509509mlir::LogicalResult
510510CIRGenFunction::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
545545mlir::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 ());
You can’t perform that action at this time.
0 commit comments