[llvm] 9293539 - [TableGen] Remove an untrue statement from the docs

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 07:19:46 PDT 2022


Author: Jay Foad
Date: 2022-05-23T15:19:33+01:00
New Revision: 9293539064aead8d1822e181b66fd5590c062a1d

URL: https://github.com/llvm/llvm-project/commit/9293539064aead8d1822e181b66fd5590c062a1d
DIFF: https://github.com/llvm/llvm-project/commit/9293539064aead8d1822e181b66fd5590c062a1d.diff

LOG: [TableGen] Remove an untrue statement from the docs

You can't use foreach in a record body. This was a mistake in the
documentation dating from when it was first written in D85838.

Added: 
    

Modified: 
    llvm/docs/TableGen/ProgRef.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/TableGen/ProgRef.rst b/llvm/docs/TableGen/ProgRef.rst
index e7e39f8f3c27..9853a7c76307 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -1224,8 +1224,6 @@ The statement list establishes an inner scope. Variables local to a
 values do not carry over from one iteration to the next. Foreach loops may
 be nested.
 
-The ``foreach`` statement can also be used in a record :token:`Body`.
-
 .. Note that the productions involving RangeList and RangePiece have precedence
    over the more generic value parsing based on the first token.
 


        


More information about the llvm-commits mailing list