From abc183443a3e8e687c399993bc383d8025e7a9ef Mon Sep 17 00:00:00 2001 From: Jinsong Ji Date: Fri, 15 Nov 2024 06:28:20 -0800 Subject: [PATCH] [SandboxIR] Don't add dup instantiation for clang On Windows some clang-based compiler(eg: icx) also define _MSC_VER --- llvm/lib/SandboxIR/Constant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/SandboxIR/Constant.cpp b/llvm/lib/SandboxIR/Constant.cpp index 3e13c935c4281..f674d7baef347 100644 --- a/llvm/lib/SandboxIR/Constant.cpp +++ b/llvm/lib/SandboxIR/Constant.cpp @@ -302,7 +302,7 @@ template class GlobalWithNodeAPI; -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) // These are needed for SandboxIRTest when building with LLVM_BUILD_LLVM_DYLIB template LLVM_EXPORT_TEMPLATE GlobalIFunc & GlobalWithNodeAPI