[PATCH] D142323: [Kaleidoscope] Update code snippets in text to match full code listings

Dhruv Chawla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 22:06:12 PST 2023


0xdc03 updated this revision to Diff 493484.
0xdc03 added a comment.

- Update the comment in the code listing to match the code below it


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142323

Files:
  llvm/examples/Kaleidoscope/Chapter9/toy.cpp


Index: llvm/examples/Kaleidoscope/Chapter9/toy.cpp
===================================================================
--- llvm/examples/Kaleidoscope/Chapter9/toy.cpp
+++ llvm/examples/Kaleidoscope/Chapter9/toy.cpp
@@ -799,7 +799,7 @@
 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
   SourceLocation FnLoc = CurLoc;
   if (auto E = ParseExpression()) {
-    // Make an anonymous proto.
+    // Make the top-level expression be our "main" function.
     auto Proto = std::make_unique<PrototypeAST>(FnLoc, "main",
                                                  std::vector<std::string>());
     return std::make_unique<FunctionAST>(std::move(Proto), std::move(E));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142323.493484.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230131/5e807300/attachment.bin>


More information about the llvm-commits mailing list