summaryrefslogtreecommitdiffstats
path: root/llvm/docs/TableGen/LangIntro.rst
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs/TableGen/LangIntro.rst')
-rw-r--r--llvm/docs/TableGen/LangIntro.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/TableGen/LangIntro.rst b/llvm/docs/TableGen/LangIntro.rst
index d72b61f6ab7..7990d1f466b 100644
--- a/llvm/docs/TableGen/LangIntro.rst
+++ b/llvm/docs/TableGen/LangIntro.rst
@@ -203,13 +203,13 @@ supported include:
For example, to assign the result to a class-typed value, you
could write either of these:
- ``BaseClass b = !getop<BaseClass>(someDag);``
+ ``BaseClass b = !getop<BaseClass>(someDag);``
- ``BaseClass b = !cast<BaseClass>(!getop(someDag));``
+ ``BaseClass b = !cast<BaseClass>(!getop(someDag));``
But to build a new dag node reusing the operator from another, no
cast is necessary:
- ``dag d = !dag(!getop(someDag), args, names);``
+ ``dag d = !dag(!getop(someDag), args, names);``
``!listconcat(a, b, ...)``
A list value that is the result of concatenating the 'a' and 'b' lists.
OpenPOWER on IntegriCloud