aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorMarc Auberer <marc.auberer@chillibits.com>2022-06-30 20:46:25 +0000
committerDavid Blaikie <dblaikie@gmail.com>2022-06-30 20:47:01 +0000
commit972fe431336e57fb8aa57c35f77ecb109415106f (patch)
tree08a86ee14f88fd9931a90d25ca52db4af4300a94 /llvm/docs/tutorial/MyFirstLanguageFrontend
parent92fb310151d2b1e349695fc0f1c5d5d50afb3b52 (diff)
downloadllvm-972fe431336e57fb8aa57c35f77ecb109415106f.zip
llvm-972fe431336e57fb8aa57c35f77ecb109415106f.tar.gz
llvm-972fe431336e57fb8aa57c35f77ecb109415106f.tar.bz2
[Kaleidoscope] Remove unused function argument
Removes an unused function argument from a code listing in the Kaleidoscope turorial in step 9. Reviewed By: dblaikie, MaskRay Differential Revision: https://reviews.llvm.org/D128628
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r--llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
index 2ddd860..e74bf9b 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl09.rst
@@ -261,7 +261,7 @@ information) and construct our function definition:
unsigned ScopeLine = 0;
DISubprogram *SP = DBuilder->createFunction(
FContext, P.getName(), StringRef(), Unit, LineNo,
- CreateFunctionType(TheFunction->arg_size(), Unit),
+ CreateFunctionType(TheFunction->arg_size()),
false /* internal linkage */, true /* definition */, ScopeLine,
DINode::FlagPrototyped, false);
TheFunction->setSubprogram(SP);