mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Re-enable inlining by default for -O2 and above.
This fixes a bug introduced in 2f78dc686.
Thanks to Jernej (jerro) for the fix!
This commit is contained in:
@@ -101,7 +101,7 @@ static unsigned sizeLevel() {
|
||||
// Determines whether or not to run the normal, full inlining pass.
|
||||
bool willInline() {
|
||||
return enableInlining == cl::BOU_TRUE ||
|
||||
(enableInlining != cl::BOU_UNSET && optLevel() > 1);
|
||||
(enableInlining == cl::BOU_UNSET && optLevel() > 1);
|
||||
}
|
||||
|
||||
llvm::CodeGenOpt::Level codeGenOptLevel() {
|
||||
|
||||
Submodule runtime/phobos updated: 16b031a512...c3574a7bc6
Reference in New Issue
Block a user