From 742870285a93e80c652bdc40c23d84aecb6085d0 Mon Sep 17 00:00:00 2001 From: Andrey Guskov Date: Wed, 3 Jun 2015 15:53:12 +0300 Subject: [PATCH] Fixed compiling for Win32 --- ispc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ispc.cpp b/ispc.cpp index 24266f15..fd1459cc 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -1020,13 +1020,14 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic, boo #endif if (g->opt.disableFMA == false) options.AllowFPOpFusion = llvm::FPOpFusion::Fast; - +#if defined(LLVM_3_2) || defined(LLVM_3_3) || defined(LLVM_3_4) || defined(LLVM_3_5) || defined(LLVM_3_6) #ifdef ISPC_IS_WINDOWS if (strcmp("x86", arch) == 0) { // Workaround for issue #503 (LLVM issue 14646). // It's Win32 specific. options.NoFramePointerElim = true; } +#endif #endif m_targetMachine = m_target->createTargetMachine(triple, m_cpu, featuresString, options,