[PATCH] D123110: [docs] Fix Kaleidoscope code example

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 02:41:35 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG153431ec7a2e: [docs] Fix Kaleidoscope code example (authored by r7vme, committed by foad).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123110

Files:
  llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst


Index: llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
===================================================================
--- llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
+++ llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
@@ -34,7 +34,7 @@
     /// ExprAST - Base class for all expression nodes.
     class ExprAST {
     public:
-      virtual ~ExprAST() {}
+      virtual ~ExprAST() = default;
       virtual Value *codegen() = 0;
     };
 
@@ -44,7 +44,7 @@
 
     public:
       NumberExprAST(double Val) : Val(Val) {}
-      virtual Value *codegen();
+      Value *codegen() override;
     };
     ...
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123110.420758.patch
Type: text/x-patch
Size: 644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/40dc3fab/attachment.bin>


More information about the llvm-commits mailing list