[WebAssembly] Fix printing of global operands
[oota-llvm.git] / docs / tutorial / LangImpl2.rst
index 09c55e60f3ac6c579d69aafc1d6aa533080ac925..4704008fc8a7c4335c95dc1ffcca40e6d29ee8ae 100644 (file)
@@ -85,7 +85,7 @@ language:
     /// CallExprAST - Expression class for function calls.
     class CallExprAST : public ExprAST {
       std::string Callee;
-      std::vector<ExprAST*> Args;
+      std::vector<std::unique_ptr<ExprAST>> Args;
 
     public:
       CallExprAST(const std::string &Callee,
@@ -396,7 +396,7 @@ would be easy enough to eliminate the map and do the comparisons in the
 With the helper above defined, we can now start parsing binary
 expressions. The basic idea of operator precedence parsing is to break
 down an expression with potentially ambiguous binary operators into
-pieces. Consider ,for example, the expression "a+b+(c+d)\*e\*f+g".
+pieces. Considerfor example, the expression "a+b+(c+d)\*e\*f+g".
 Operator precedence parsing considers this as a stream of primary
 expressions separated by binary operators. As such, it will first parse
 the leading primary expression "a", then it will see the pairs [+, b]