File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2648,6 +2648,15 @@ static Function *emit_function(jl_lambda_info_t *lam, bool cstyle)
2648
2648
// TODO: this seems to cause problems, but should be made to work eventually
2649
2649
// if (jlrettype == (jl_value_t*)jl_bottom_type)
2650
2650
// f->setDoesNotReturn();
2651
+ #if defined(_OS_WINDOWS_) && !defined(_CPU_X86_64_)
2652
+ #if LLVM32 && !LLVM33
2653
+ f->addFnAttr (Attributes::getWithStackAlignment (
2654
+ f->getContext (),16 ).getKindAsEnum ());
2655
+ #else
2656
+ f->addFnAttr (Attribute::getWithStackAlignment (
2657
+ f->getContext (),16 ).getKindAsEnum ());
2658
+ #endif
2659
+ #endif
2651
2660
#ifdef DEBUG
2652
2661
#if LLVM32 && !LLVM33
2653
2662
f->addFnAttr (Attributes::StackProtectReq);
@@ -3595,7 +3604,7 @@ extern "C" void jl_init_codegen(void)
3595
3604
#ifndef LLVM34
3596
3605
options.NoFramePointerElimNonLeaf = true ;
3597
3606
#endif
3598
- #ifdef __MINGW32__
3607
+ #if defined(_OS_WINDOWS_) && !defined(_CPU_X86_64_)
3599
3608
options.StackAlignmentOverride = 16 ;
3600
3609
#endif
3601
3610
#ifdef __APPLE__
You can’t perform that action at this time.
0 commit comments