Skip to content

Commit 117dd38

Browse files
committed
Change RAII object name
1 parent 7fc1c6e commit 117dd38

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clang/lib/CIR/CodeGen/CIRGenFunction.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,15 +1208,15 @@ class CIRGenFunction : public CIRGenTypeCache {
12081208
// keep track of the 'loop' so that we can add the cache vars to it correctly.
12091209
mlir::acc::LoopOp *activeLoopOp = nullptr;
12101210

1211-
struct ActiveLoopRAII {
1211+
struct ActiveOpenACCLoopRAII {
12121212
CIRGenFunction &cgf;
12131213
mlir::acc::LoopOp *oldLoopOp;
12141214

1215-
ActiveLoopRAII(CIRGenFunction &cgf, mlir::acc::LoopOp *newOp)
1215+
ActiveOpenACCLoopRAII(CIRGenFunction &cgf, mlir::acc::LoopOp *newOp)
12161216
: cgf(cgf), oldLoopOp(cgf.activeLoopOp) {
12171217
cgf.activeLoopOp = newOp;
12181218
}
1219-
~ActiveLoopRAII() { cgf.activeLoopOp = oldLoopOp; }
1219+
~ActiveOpenACCLoopRAII() { cgf.activeLoopOp = oldLoopOp; }
12201220
};
12211221

12221222
public:

clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ mlir::LogicalResult CIRGenFunction::emitOpenACCOpCombinedConstruct(
9595
builder.setInsertionPointToEnd(&innerBlock);
9696

9797
LexicalScope ls{*this, start, builder.getInsertionBlock()};
98-
ActiveLoopRAII activeLoop{*this, &loopOp};
98+
ActiveOpenACCLoopRAII activeLoop{*this, &loopOp};
9999

100100
res = emitStmt(loopStmt, /*useCurrentScope=*/true);
101101

clang/lib/CIR/CodeGen/CIRGenStmtOpenACCLoop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ CIRGenFunction::emitOpenACCLoopConstruct(const OpenACCLoopConstruct &s) {
130130
mlir::OpBuilder::InsertionGuard guardCase(builder);
131131
builder.setInsertionPointToEnd(&block);
132132
LexicalScope ls{*this, start, builder.getInsertionBlock()};
133-
ActiveLoopRAII activeLoop{*this, &op};
133+
ActiveOpenACCLoopRAII activeLoop{*this, &op};
134134

135135
stmtRes = emitStmt(s.getLoop(), /*useCurrentScope=*/true);
136136
builder.create<mlir::acc::YieldOp>(end);

0 commit comments

Comments
 (0)