Skip to content

Commit 1a14808

Browse files
committed
Fix clang OpenACC lowering for the name change
1 parent 82a81a4 commit 1a14808

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,7 @@ class OpenACCClauseCIREmitter final
291291
}
292292

293293
void VisitDeviceNumClause(const OpenACCDeviceNumClause &clause) {
294-
if constexpr (isOneOfTypes<OpTy, InitOp, ShutdownOp>) {
295-
operation.getDeviceNumOperandMutable().append(
296-
createIntExpr(clause.getIntExpr()));
297-
} else if constexpr (isOneOfTypes<OpTy, SetOp>) {
298-
// This is only a separate case because the getter name is different in
299-
// 'set' for some reason.
294+
if constexpr (isOneOfTypes<OpTy, InitOp, ShutdownOp, SetOp>) {
300295
operation.getDeviceNumMutable().append(
301296
createIntExpr(clause.getIntExpr()));
302297
} else {

0 commit comments

Comments
 (0)