================ @@ -109,14 +126,15 @@ class OpenACCClauseCIREmitter final } void VisitDeviceTypeClause(const OpenACCDeviceTypeClause &clause) { + lastDeviceTypeClause = &clause; if constexpr (isOneOfTypes<OpTy, InitOp, ShutdownOp>) { llvm::SmallVector<mlir::Attribute> deviceTypes; std::optional<mlir::ArrayAttr> existingDeviceTypes = operation.getDeviceTypes(); // Ensure we keep the existing ones, and in the correct 'new' order. if (existingDeviceTypes) { - for (const mlir::Attribute &Attr : *existingDeviceTypes) + for (mlir::Attribute Attr : *existingDeviceTypes) ---------------- erichkeane wrote:
Fixed here: 4b98955680e0aad33cad0e810f1daaa8bc7c0a23 https://github.com/llvm/llvm-project/pull/136578 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits