Skip to content

Commit 51882dd

Browse files
committed
[CIR] Make ClangIR compatible after AST representation modifications
1 parent 3d38a92 commit 51882dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/CIR/CodeGen/TargetInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ bool clang::CIRGen::isEmptyRecordForLayout(const ASTContext &context,
1717
if (cxxrd->isDynamicClass())
1818
return false;
1919

20-
for (const auto &I : cxxrd->bases())
21-
if (!isEmptyRecordForLayout(context, I.getType()))
20+
for (const auto &i : cxxrd->bases())
21+
if (!isEmptyRecordForLayout(context, i.getType()))
2222
return false;
2323
}
2424

25-
for (const auto *I : rd->fields())
26-
if (!isEmptyFieldForLayout(context, I))
25+
for (const auto *i : rd->fields())
26+
if (!isEmptyFieldForLayout(context, i))
2727
return false;
2828

2929
return true;

0 commit comments

Comments
 (0)