mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 04:43:14 +01:00
Remove a bit of code duplication.
This commit is contained in:
@@ -146,7 +146,7 @@ static void addPassesForOptLevel(PassManager& pm) {
|
||||
// Returns true if any optimization passes were invoked.
|
||||
bool ldc_optimize_module(llvm::Module* m)
|
||||
{
|
||||
if (!doInline() && optimizeLevel == 0 && passList.empty())
|
||||
if (!optimize())
|
||||
return false;
|
||||
|
||||
PassManager pm;
|
||||
|
||||
Reference in New Issue
Block a user