aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-11-25 14:17:24 +0200
committerMartin Storsjö <martin@martin.st>2022-11-25 21:46:31 +0200
commitd6ab42dec492ccd3f1b515796d9d2fb020c520bd (patch)
treec74f868da00c6bc80f6407e1c78c626083e4c6ac /llvm/lib/IR/Module.cpp
parent56969279b9988594ac9a49e880d07c0dd6ba3a28 (diff)
downloadllvm-d6ab42dec492ccd3f1b515796d9d2fb020c520bd.zip
llvm-d6ab42dec492ccd3f1b515796d9d2fb020c520bd.tar.gz
llvm-d6ab42dec492ccd3f1b515796d9d2fb020c520bd.tar.bz2
[openmp] Fix build break for less common architectures
fb947c358661b3bd3d5e1fa776ec74cc0f308854 introduced the gas macro COMMON, but it was only defined within ifdefs of the form: #if (KMP_OS_LINUX || KMP_OS_DARWIN || KMP_OS_WINDOWS) && KMP_ARCH_AARCH64 It was used, however, within other conditions: #if KMP_ARCH_ARM || KMP_ARCH_MIPS and: #if KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 || KMP_ARCH_RISCV64 || KMP_ARCH_LOONGARCH64 Move the definition of the COMMON macro out from the current ifdef, so that it always gets defined (as it's only dependent on the target platform). This fixes building on ARM (and presumably all the other mentioned architectures except aarch64). Differential Revision: https://reviews.llvm.org/D138703
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions