[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:51 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-openmp

Author: None (Ritanya-B-Bharadwaj)

<details>
<summary>Changes</summary>

…edefinition - https://github.com/llvm/llvm-project/issues/126043

---
Full diff: https://github.com/llvm/llvm-project/pull/126222.diff


1 Files Affected:

- (modified) llvm/lib/Frontend/OpenMP/OMPContext.cpp (+1-1) 


``````````diff
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.

``````````

</details>


https://github.com/llvm/llvm-project/pull/126222


More information about the llvm-commits mailing list