[llvm] This commit fixes the build failure due to OMP_TRAIT_PROPERTY macro r… (PR #126222)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 02:45:19 PST 2025
https://github.com/Ritanya-B-Bharadwaj created https://github.com/llvm/llvm-project/pull/126222
…edefinition - https://github.com/llvm/llvm-project/issues/126043
>From 1cc11f73387ce8afdc38341ac3c8e37f561c2d16 Mon Sep 17 00:00:00 2001
From: Ritanya B Bharadwaj <ritanya.b.bharadwaj at gmail.com>
Date: Fri, 7 Feb 2025 04:43:13 -0600
Subject: [PATCH] This commit fixes the build failure due to OMP_TRAIT_PROPERTY
macro redefinition
---
llvm/lib/Frontend/OpenMP/OMPContext.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Frontend/OpenMP/OMPContext.cpp b/llvm/lib/Frontend/OpenMP/OMPContext.cpp
index cca5f8806f9e5cb..5e13da172d67777 100644
--- a/llvm/lib/Frontend/OpenMP/OMPContext.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPContext.cpp
@@ -67,7 +67,7 @@ OMPContext::OMPContext(bool IsDeviceCompilation, Triple TargetTriple,
TargetOffloadTriple.getArch() == Triple::x86_64) \
ActiveTraits.set(unsigned(TraitProperty::Enum)); \
}
-#undef OMP_TRAIT_PROPERTY
+#include "llvm/Frontend/OpenMP/OMPKinds.def"
} else {
// Add the appropriate device kind trait based on the triple and the
// IsDeviceCompilation flag.
More information about the llvm-commits
mailing list