[flang-commits] [flang] 6733bc3 - [flang] Replace FlangOMPContext with OmpVariantMatchContext. (#209220)
via flang-commits
flang-commits at lists.llvm.org
Mon Jul 13 08:47:28 PDT 2026
Author: Abid Qadeer
Date: 2026-07-13T15:47:23Z
New Revision: 6733bc3026401bf84c391301313c7ea131bd9904
URL: https://github.com/llvm/llvm-project/commit/6733bc3026401bf84c391301313c7ea131bd9904
DIFF: https://github.com/llvm/llvm-project/commit/6733bc3026401bf84c391301313c7ea131bd9904.diff
LOG: [flang] Replace FlangOMPContext with OmpVariantMatchContext. (#209220)
The `FlangOMPContext` got replaced in 8e8e4e50f501b.
This fixes build after https://github.com/llvm/llvm-project/pull/206988.
Added:
Modified:
flang/lib/Lower/OpenMP/Utils.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP/Utils.cpp b/flang/lib/Lower/OpenMP/Utils.cpp
index 71b3d74216cea..1469f83a56971 100644
--- a/flang/lib/Lower/OpenMP/Utils.cpp
+++ b/flang/lib/Lower/OpenMP/Utils.cpp
@@ -1417,7 +1417,8 @@ resolveDeclareVariantCallee(const semantics::Symbol &base,
collectEnclosingConstructTraits(
converter.getFirOpBuilder().getInsertionBlock()->getParentOp(),
constructTraits);
- FlangOMPContext ompCtx{converter.getModuleOp(), constructTraits};
+ semantics::omp::OmpVariantMatchContext ompCtx =
+ makeVariantMatchContext(converter.getModuleOp(), constructTraits);
const int bestIdx{llvm::omp::getBestVariantMatchForContext(vmis, ompCtx)};
// Return nullptr when no variant matches the current context; the caller
More information about the flang-commits
mailing list