diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 0c7ecf00097..3c527c50b62 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -171,9 +171,10 @@ bool X86TargetMachine::addAssemblyEmitter(FunctionPassManager &PM, bool Fast, bool X86TargetMachine::addCodeEmitter(FunctionPassManager &PM, bool Fast, bool DumpAsm, MachineCodeEmitter &MCE) { // FIXME: Move this to TargetJITInfo! - if (DefRelocModel == Reloc::Default) + if (DefRelocModel == Reloc::Default) { setRelocationModel(Reloc::Static); - Subtarget.setPICStyle(PICStyle::None); + Subtarget.setPICStyle(PICStyle::None); + } // JIT cannot ensure globals are placed in the lower 4G of address. if (Subtarget.is64Bit())