[clang] 0f5c66c - [OpenACC][CIR] Fix build error from CIR upstreaming
Michael Liao via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 17 17:28:49 PDT 2025
Author: Michael Liao
Date: 2025-04-17T20:28:40-04:00
New Revision: 0f5c66c364a6702edf65214a4f975c3e3f326d9a
URL: https://github.com/llvm/llvm-project/commit/0f5c66c364a6702edf65214a4f975c3e3f326d9a
DIFF: https://github.com/llvm/llvm-project/commit/0f5c66c364a6702edf65214a4f975c3e3f326d9a.diff
LOG: [OpenACC][CIR] Fix build error from CIR upstreaming
- 'DeviceTypeArgument' is defined as 'IdentifierLoc' instead of
'std::pair<IdentifierInfo *, SourceLocation>'.
Added:
Modified:
clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
Removed:
################################################################################
diff --git a/clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp b/clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
index c14ff9a16841d..30e840cbfa1f7 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
@@ -124,7 +124,7 @@ class OpenACCClauseCIREmitter final
for (const DeviceTypeArgument &arg : clause.getArchitectures()) {
deviceTypes.push_back(mlir::acc::DeviceTypeAttr::get(
- builder.getContext(), decodeDeviceType(arg.first)));
+ builder.getContext(), decodeDeviceType(arg.getIdentifierInfo())));
}
operation.removeDeviceTypesAttr();
operation.setDeviceTypesAttr(
@@ -135,7 +135,7 @@ class OpenACCClauseCIREmitter final
if (!clause.getArchitectures().empty())
operation.setDeviceType(
- decodeDeviceType(clause.getArchitectures()[0].first));
+ decodeDeviceType(clause.getArchitectures()[0].getIdentifierInfo()));
} else {
return clauseNotImplemented(clause);
}
More information about the cfe-commits
mailing list