diff --git a/llvm/docs/ORCv2.rst b/llvm/docs/ORCv2.rst index edb1695f4e3e..6e630a7d54ee 100644 --- a/llvm/docs/ORCv2.rst +++ b/llvm/docs/ORCv2.rst @@ -117,8 +117,10 @@ module ``M`` loaded on an ThreadSafeContext ``Ctx``: if (!EntrySym) return EntrySym.takeError(); + // Cast the entry point address to a function pointer. auto *Entry = (void(*)())EntrySym.getAddress(); + // Call into JIT'd code. Entry(); The builder clasess provide a number of configuration options that can be