summaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index ea6ed3370c..358cbdabfb 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -543,7 +543,7 @@ int main(int argc, char **argv) {
}
if (PrintEachXForm)
- Passes.add(new PrintModulePass(&cerr));
+ Passes.add(createPrintModulePass(&cerr));
}
// If -std-compile-opts was specified at the end of the pass list, add them.