Skip to content

Commit 1d5400b

Browse files
committed
Revert "[IRGen] The "default" LLVM code model is now Small."
This reverts commit 7526d07. That commit was applied to master-next for changes in swift-llvm's upstream-with-swift branch that are not included in the swift-4.1-branch.
1 parent 9ea6be6 commit 1d5400b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ swift::createTargetMachine(IRGenOptions &Opts, ASTContext &Ctx) {
509509

510510

511511
// Create a target machine.
512-
auto cmodel = CodeModel::Small;
512+
auto cmodel = CodeModel::Default;
513513

514514
// On Windows 64 bit, dlls are loaded above the max address for 32 bits.
515515
// This means that a default CodeModel causes generated code to segfault

0 commit comments

Comments
 (0)