Make sure to initialize the fpm in the ocaml tutorial.
[oota-llvm.git] / docs / tutorial / OCamlLangImpl5.html
index 6c77e9fa45e6cd678620b0b2d7e326dee8bf1a07..bd22c5e229b4672aa564e584d3149a83a0ae6281 100644 (file)
@@ -1519,6 +1519,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;