LegalizeTypes can sometimes have deleted nodes
[oota-llvm.git] / docs / tutorial / LangImpl6.html
index 62ce43e33f4f2b390ccbc2e2cc33ea0b43fb7160..1f159e0b56d51fd88b38e2a76abee653af17e1ff 100644 (file)
@@ -827,7 +827,7 @@ if/then/else and for expressions..  To build this example, use:
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/Target/TargetData.h"
 #include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/LLVMBuilder.h"
+#include "llvm/Support/IRBuilder.h"
 #include <cstdio>
 #include <string>
 #include <map>
@@ -1357,7 +1357,7 @@ static PrototypeAST *ParseExtern() {
 //===----------------------------------------------------------------------===//
 
 static Module *TheModule;
-static LLVMFoldingBuilder Builder;
+static IRBuilder Builder;
 static std::map<std::string, Value*> NamedValues;
 static FunctionPassManager *TheFPM;