fix some bugs in tutorial, patch by Erick Tryzelaar

llvm-svn: 47481
This commit is contained in:
Chris Lattner 2008-02-22 17:09:39 +00:00
parent 622e21256e
commit c8576eeaad
1 changed files with 2 additions and 2 deletions

View 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;