aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorMike Rostecki <vadorovsky@protonmail.com>2023-05-31 15:04:47 -0700
committerLang Hames <lhames@gmail.com>2023-05-31 15:15:55 -0700
commit2addaeda18adb5a26320693f9b34df8495b8a225 (patch)
tree7267b37d5b5a656c006ce84b92a9b3cf4ba29bb2 /llvm/docs/tutorial/MyFirstLanguageFrontend
parent349c0aacb38072a868421ce7c460514be57a3de7 (diff)
downloadllvm-2addaeda18adb5a26320693f9b34df8495b8a225.zip
llvm-2addaeda18adb5a26320693f9b34df8495b8a225.tar.gz
llvm-2addaeda18adb5a26320693f9b34df8495b8a225.tar.bz2
[docs] Use ExecutorAddr::toPtr() in ORC documentation.
The partial move from JITTargetAddress to ExecutorAddr in 8b1771bd9f30 did not update the ORC or Kaleidoscope documents. This patch fixes the inconsistency. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D150458
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r--llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
index 32db7b5..79bb1f1 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
@@ -317,7 +317,7 @@ look like this:
// Get the symbol's address and cast it to the right type (takes no
// arguments, returns a double) so we can call it as a native function.
- double (*FP)() = (double (*)())(intptr_t)ExprSymbol.getAddress();
+ double (*FP)() = ExprSymbol.getAddress().toPtr<double (*)()>();
fprintf(stderr, "Evaluated to %f\n", FP());
// Delete the anonymous expression module from the JIT.