diff --git a/docs/tutorial/JITTutorial1.html b/docs/tutorial/JITTutorial1.html
index b4054a16431..b063848e09a 100644
--- a/docs/tutorial/JITTutorial1.html
+++ b/docs/tutorial/JITTutorial1.html
@@ -78,7 +78,7 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
- PM.add(new PrintModulePass(&llvm::cout));
+ PM.add(createPrintModulePass(&llvm::cout));
PM.run(*Mod);
delete Mod;
diff --git a/docs/tutorial/JITTutorial2.html b/docs/tutorial/JITTutorial2.html
index 3d918b039b2..49192b4f05d 100644
--- a/docs/tutorial/JITTutorial2.html
+++ b/docs/tutorial/JITTutorial2.html
@@ -68,7 +68,7 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
- PM.add(new PrintModulePass(&llvm::cout));
+ PM.add(createPrintModulePass(&llvm::cout));
PM.run(*Mod);
delete Mod;