Skip to content

Commit 0647eee

Browse files
mmhaandykaylor
andauthored
Update clang/lib/CIR/CodeGen/CIRGenStmt.cpp
Co-authored-by: Andy Kaylor <[email protected]>
1 parent 020184b commit 0647eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mlir::LogicalResult CIRGenFunction::emitCompoundStmtWithoutScope(
3232
"If lastValue is not null then the CompoundStmt must have a "
3333
"StmtExprResult");
3434

35-
for (Stmt *curStmt : s.body()) {
35+
for (const Stmt *curStmt : s.body()) {
3636
// We have to special case labels here. They are statements, but when put
3737
// at the end of a statement expression, they yield the value of their
3838
// subexpression. Handle this by walking through all labels we encounter,

0 commit comments

Comments
 (0)