[PATCH] D77625: Fix a typo in the error message for an incorrect prototype.

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 15:47:49 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9b1a0d300e5e: Fix a typo in the error message for an incorrect prototype. (authored by Jean-Luc, committed by rriddle).
Herald added a subscriber: frgossen.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77625/new/

https://reviews.llvm.org/D77625

Files:
  mlir/examples/toy/Ch1/include/toy/Parser.h
  mlir/examples/toy/Ch2/include/toy/Parser.h
  mlir/examples/toy/Ch3/include/toy/Parser.h
  mlir/examples/toy/Ch4/include/toy/Parser.h
  mlir/examples/toy/Ch5/include/toy/Parser.h
  mlir/examples/toy/Ch6/include/toy/Parser.h
  mlir/examples/toy/Ch7/include/toy/Parser.h


Index: mlir/examples/toy/Ch7/include/toy/Parser.h
===================================================================
--- mlir/examples/toy/Ch7/include/toy/Parser.h
+++ mlir/examples/toy/Ch7/include/toy/Parser.h
@@ -583,7 +583,7 @@
       } while (true);
     }
     if (lexer.getCurToken() != ')')
-      return parseError<PrototypeAST>("}", "to end function prototype");
+      return parseError<PrototypeAST>(")", "to end function prototype");
 
     // success.
     lexer.consume(Token(')'));
Index: mlir/examples/toy/Ch6/include/toy/Parser.h
===================================================================
--- mlir/examples/toy/Ch6/include/toy/Parser.h
+++ mlir/examples/toy/Ch6/include/toy/Parser.h
@@ -428,7 +428,7 @@
       } while (true);
     }
     if (lexer.getCurToken() != ')')
-      return parseError<PrototypeAST>("}", "to end function prototype");
+      return parseError<PrototypeAST>(")", "to end function prototype");
 
     // success.
     lexer.consume(Token(')'));
Index: mlir/examples/toy/Ch5/include/toy/Parser.h
===================================================================
--- mlir/examples/toy/Ch5/include/toy/Parser.h
+++ mlir/examples/toy/Ch5/include/toy/Parser.h
@@ -428,7 +428,7 @@
       } while (true);
     }
     if (lexer.getCurToken() != ')')
-      return parseError<PrototypeAST>("}", "to end function prototype");
+      return parseError<PrototypeAST>(")", "to end function prototype");
 
     // success.
     lexer.consume(Token(')'));
Index: mlir/examples/toy/Ch4/include/toy/Parser.h
===================================================================
--- mlir/examples/toy/Ch4/include/toy/Parser.h
+++ mlir/examples/toy/Ch4/include/toy/Parser.h
@@ -428,7 +428,7 @@
       } while (true);
     }
     if (lexer.getCurToken() != ')')
-      return parseError<PrototypeAST>("}", "to end function prototype");
+      return parseError<PrototypeAST>(")", "to end function prototype");
 
     // success.
     lexer.consume(Token(')'));
Index: mlir/examples/toy/Ch3/include/toy/Parser.h
===================================================================
--- mlir/examples/toy/Ch3/include/toy/Parser.h
+++ mlir/examples/toy/Ch3/include/toy/Parser.h
@@ -428,7 +428,7 @@
       } while (true);
     }
     if (lexer.getCurToken() != ')')
-      return parseError<PrototypeAST>("}", "to end function prototype");
+      return parseError<PrototypeAST>(")", "to end function prototype");
 
     // success.
     lexer.consume(Token(')'));
Index: mlir/examples/toy/Ch2/include/toy/Parser.h
===================================================================
--- mlir/examples/toy/Ch2/include/toy/Parser.h
+++ mlir/examples/toy/Ch2/include/toy/Parser.h
@@ -428,7 +428,7 @@
       } while (true);
     }
     if (lexer.getCurToken() != ')')
-      return parseError<PrototypeAST>("}", "to end function prototype");
+      return parseError<PrototypeAST>(")", "to end function prototype");
 
     // success.
     lexer.consume(Token(')'));
Index: mlir/examples/toy/Ch1/include/toy/Parser.h
===================================================================
--- mlir/examples/toy/Ch1/include/toy/Parser.h
+++ mlir/examples/toy/Ch1/include/toy/Parser.h
@@ -428,7 +428,7 @@
       } while (true);
     }
     if (lexer.getCurToken() != ')')
-      return parseError<PrototypeAST>("}", "to end function prototype");
+      return parseError<PrototypeAST>(")", "to end function prototype");
 
     // success.
     lexer.consume(Token(')'));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77625.257131.patch
Type: text/x-patch
Size: 3486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/c8882e72/attachment.bin>


More information about the llvm-commits mailing list