summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl2.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-22 17:09:39 +0000
committerChris Lattner <sabre@nondot.org>2008-02-22 17:09:39 +0000
commitc8576eeaad6c02500100c0c42453632b4c9cbb92 (patch)
treeed098aabb728afefeae7c54ea102d358f190f3dd /llvm/docs/tutorial/LangImpl2.html
parent622e21256ebdd211770e523254db3501c4e7fad4 (diff)
downloadbcm5719-llvm-c8576eeaad6c02500100c0c42453632b4c9cbb92.tar.gz
bcm5719-llvm-c8576eeaad6c02500100c0c42453632b4c9cbb92.zip
fix some bugs in tutorial, patch by Erick Tryzelaar
llvm-svn: 47481
Diffstat (limited to 'llvm/docs/tutorial/LangImpl2.html')
-rw-r--r--llvm/docs/tutorial/LangImpl2.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/LangImpl2.html b/llvm/docs/tutorial/LangImpl2.html
index b7f968b0daa..50619e09550 100644
--- a/llvm/docs/tutorial/LangImpl2.html
+++ b/llvm/docs/tutorial/LangImpl2.html
@@ -933,7 +933,7 @@ public:
/// of arguments the function takes).
class PrototypeAST {
std::string Name;
- std::vector&lt; Args;
+ std::vector&lt;std::string&gt; Args;
public:
PrototypeAST(const std::string &amp;name, const std::vector&lt;std::string&gt; &amp;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&lt;());
+ PrototypeAST *Proto = new PrototypeAST("", std::vector&lt;std::string&gt;());
return new FunctionAST(Proto, E);
}
return 0;
OpenPOWER on IntegriCloud