mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[IRGen] The "default" LLVM code model is now Small.
This commit is contained in:
@@ -509,7 +509,7 @@ swift::createTargetMachine(IRGenOptions &Opts, ASTContext &Ctx) {
|
|||||||
|
|
||||||
|
|
||||||
// Create a target machine.
|
// Create a target machine.
|
||||||
auto cmodel = CodeModel::Default;
|
auto cmodel = CodeModel::Small;
|
||||||
|
|
||||||
// On Windows 64 bit, dlls are loaded above the max address for 32 bits.
|
// On Windows 64 bit, dlls are loaded above the max address for 32 bits.
|
||||||
// This means that a default CodeModel causes generated code to segfault
|
// This means that a default CodeModel causes generated code to segfault
|
||||||
|
|||||||
Reference in New Issue
Block a user