mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Remove a bit of code duplication.
This commit is contained in:
parent
5d63aeaed9
commit
664c2c333e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue