mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix a logic bug.
This commit is contained in:
@@ -52,7 +52,7 @@ int optLevel() {
|
||||
}
|
||||
|
||||
bool optimize() {
|
||||
return optimizeLevel || doInline() || passList.empty();
|
||||
return optimizeLevel || doInline() || !passList.empty();
|
||||
}
|
||||
|
||||
// this function inserts some or all of the std-compile-opts passes depending on the
|
||||
|
||||
Reference in New Issue
Block a user