Remove a bit of code duplication.

This commit is contained in:
Frits van Bommel 2009-04-26 20:36:53 +02:00
parent 5d63aeaed9
commit 664c2c333e

View file

@ -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;