Skip to content

Commit

Permalink
address
Browse files Browse the repository at this point in the history
  • Loading branch information
wenpen committed May 17, 2024
1 parent 9ae5d1f commit 7a61b3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/CIR/CodeGen/CIRGenStmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ mlir::LogicalResult CIRGenFunction::buildLabelStmt(const clang::LabelStmt &S) {
// IsEHa: not implemented.
assert(!(getContext().getLangOpts().EHAsynch && S.isSideEntry()));

// TODO: After support case stmt crossing scopes, we should build LabelStmt
// and clean LexicalScope::IsInsideCaseNoneStmt.
// TODO(cir): After support case stmt crossing scopes, we should build
// LabelStmt and clean LexicalScope::IsInsideCaseNoneStmt.
for (auto *lexScope = currLexScope; lexScope;
lexScope = lexScope->getParentScope()) {
assert(!lexScope->IsInsideCaseNoneStmt &&
Expand Down Expand Up @@ -467,8 +467,8 @@ mlir::LogicalResult CIRGenFunction::buildReturnStmt(const ReturnStmt &S) {
assert(!UnimplementedFeature::requiresReturnValueCheck());
auto loc = getLoc(S.getSourceRange());

// TODO: Rewrite the logic to handle ReturnStmt inside SwitchStmt, then
// clean up the code below.
// TODO(cir): Rewrite the logic to handle ReturnStmt inside SwitchStmt, then
// clean up the code below.
if (currLexScope->IsInsideCaseNoneStmt)
return mlir::success();

Expand Down

0 comments on commit 7a61b3c

Please sign in to comment.