Skip to content

Commit 4c470d0

Browse files
This commit fixes the build failure due to OMP_TRAIT_PROPERTY macro r… (#126222)
…edefinition - #126043
1 parent 09a500b commit 4c470d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Frontend/OpenMP/OMPContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ OMPContext::OMPContext(bool IsDeviceCompilation, Triple TargetTriple,
6767
TargetOffloadTriple.getArch() == Triple::x86_64) \
6868
ActiveTraits.set(unsigned(TraitProperty::Enum)); \
6969
}
70-
#undef OMP_TRAIT_PROPERTY
70+
#include "llvm/Frontend/OpenMP/OMPKinds.def"
7171
} else {
7272
// Add the appropriate device kind trait based on the triple and the
7373
// IsDeviceCompilation flag.

0 commit comments

Comments
 (0)