diff options
author | Mike Rostecki <vadorovsky@protonmail.com> | 2023-05-31 15:04:47 -0700 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2023-05-31 15:15:55 -0700 |
commit | 2addaeda18adb5a26320693f9b34df8495b8a225 (patch) | |
tree | 7267b37d5b5a656c006ce84b92a9b3cf4ba29bb2 /llvm/docs/tutorial/MyFirstLanguageFrontend | |
parent | 349c0aacb38072a868421ce7c460514be57a3de7 (diff) | |
download | llvm-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.rst | 2 |
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. |