LegalizeTypes can sometimes have deleted nodes
[oota-llvm.git] / docs / tutorial / LangImpl2.html
index b7f968b0daa2b7100797a0e5b55fe50818be1a84..50619e095502382959262f5dce1ecb24ae8b2174 100644 (file)
@@ -933,7 +933,7 @@ public:
 /// of arguments the function takes).
 class PrototypeAST {
   std::string Name;
-  std::vector< Args;
+  std::vector<std::string> Args;
 public:
   PrototypeAST(const std::string &name, const std::vector<std::string> &args)
     : Name(name), Args(args) {}
@@ -1132,7 +1132,7 @@ static FunctionAST *ParseDefinition() {
 static FunctionAST *ParseTopLevelExpr() {
   if (ExprAST *E = ParseExpression()) {
     // Make an anonymous proto.
-    PrototypeAST *Proto = new PrototypeAST("", std::vector<());
+    PrototypeAST *Proto = new PrototypeAST("", std::vector<std::string>());
     return new FunctionAST(Proto, E);
   }
   return 0;