| ... | @@ -153,6 +153,11 @@ LLVMTargetMachineRef ZigLLVMCreateTargetMachine(LLVMTargetRef T, const char *Tri | ... | @@ -153,6 +153,11 @@ LLVMTargetMachineRef ZigLLVMCreateTargetMachine(LLVMTargetRef T, const char *Tri |
| 153 | } | 153 | } |
| 154 | | 154 | |
| 155 | TargetOptions opt; | 155 | TargetOptions opt; |
| | 156 | |
| | 157 | // Work around the missing initialization of this field in the default |
| | 158 | // constructor. Use -1 so that the default value is used. |
| | 159 | opt.StackProtectorGuardOffset = (unsigned)-1; |
| | 160 | |
| 156 | opt.FunctionSections = function_sections; | 161 | opt.FunctionSections = function_sections; |
| 157 | switch (float_abi) { | 162 | switch (float_abi) { |
| 158 | case ZigLLVMABITypeDefault: | 163 | case ZigLLVMABITypeDefault: |