Make sure to initialize the fpm in the ocaml tutorial.
[oota-llvm.git] / docs / tutorial / OCamlLangImpl7.html
index dab3059c89a478a84b72f0181ee5bfd497749c1f..411e040b93d2cfaa111c68f3199ef6c01e055998 100644 (file)
@@ -1852,6 +1852,8 @@ let main () =
   (* Simplify the control flow graph (deleting unreachable blocks, etc). *)
   add_cfg_simplification the_fpm;
 
+  ignore (PassManager.initialize the_fpm);
+
   (* Run the main "interpreter loop" now. *)
   Toplevel.main_loop the_fpm the_execution_engine stream;