Skip to content

Commit 0f5c66c

Browse files
committed
[OpenACC][CIR] Fix build error from CIR upstreaming
- 'DeviceTypeArgument' is defined as 'IdentifierLoc' instead of 'std::pair<IdentifierInfo *, SourceLocation>'.
1 parent afc5cc0 commit 0f5c66c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class OpenACCClauseCIREmitter final
124124

125125
for (const DeviceTypeArgument &arg : clause.getArchitectures()) {
126126
deviceTypes.push_back(mlir::acc::DeviceTypeAttr::get(
127-
builder.getContext(), decodeDeviceType(arg.first)));
127+
builder.getContext(), decodeDeviceType(arg.getIdentifierInfo())));
128128
}
129129
operation.removeDeviceTypesAttr();
130130
operation.setDeviceTypesAttr(
@@ -135,7 +135,7 @@ class OpenACCClauseCIREmitter final
135135

136136
if (!clause.getArchitectures().empty())
137137
operation.setDeviceType(
138-
decodeDeviceType(clause.getArchitectures()[0].first));
138+
decodeDeviceType(clause.getArchitectures()[0].getIdentifierInfo()));
139139
} else {
140140
return clauseNotImplemented(clause);
141141
}

0 commit comments

Comments
 (0)