Access pass manager consistently.
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58342 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/Backend.cpp b/Driver/Backend.cpp
index 823f666..fe26f11 100644
--- a/Driver/Backend.cpp
+++ b/Driver/Backend.cpp
@@ -304,7 +304,7 @@
if (CompileOpts.OptimizationLevel > 1 && CompileOpts.UnitAtATime)
PM->add(createConstantMergePass()); // Merge dup global constants
} else {
- PerModulePasses->add(createAlwaysInlinerPass());
+ PM->add(createAlwaysInlinerPass());
}
}