diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index e70ecf37..12db0688 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -1659,7 +1659,10 @@ bool mustDefineSymbol(Dsymbol* s) if ( !fd->isStaticCtorDeclaration() && !fd->isStaticDtorDeclaration() && !fd->isUnitTestDeclaration() - && fd->canInline(true, false, false)) + // FIXME: Should be canInline(true, false, false), but this + // causes a misoptimization in druntime on x86, likely due to + // an LLVM bug. + && fd->canInline(true)) { return true; }