[llvm] 4c470d0 - This commit fixes the build failure due to OMP_TRAIT_PROPERTY macro r… (#126222)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 9 05:03:06 PST 2025


Author: Ritanya-B-Bharadwaj
Date: 2025-02-09T18:33:03+05:30
New Revision: 4c470d0c933cee57843052e0783f6f11a20bd820

URL: https://github.com/llvm/llvm-project/commit/4c470d0c933cee57843052e0783f6f11a20bd820
DIFF: https://github.com/llvm/llvm-project/commit/4c470d0c933cee57843052e0783f6f11a20bd820.diff

LOG: This commit fixes the build failure due to OMP_TRAIT_PROPERTY macro r… (#126222)

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

Added: 
    

Modified: 
    llvm/lib/Frontend/OpenMP/OMPContext.cpp

Removed: 
    


################################################################################
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