diff options
Diffstat (limited to 'docs/tutorial/BuildingAJIT2.rst')
-rw-r--r-- | docs/tutorial/BuildingAJIT2.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/BuildingAJIT2.rst b/docs/tutorial/BuildingAJIT2.rst index 902382adf89..7d25ccaba0a 100644 --- a/docs/tutorial/BuildingAJIT2.rst +++ b/docs/tutorial/BuildingAJIT2.rst @@ -99,8 +99,8 @@ Next we need to update our addModule method to replace the call to .. code-block:: c++ - ThreadSafeModule optimizeModule(ThreadSafeModule M, - const MaterializationResponsibility &R) { + static Expected<ThreadSafeModule> + optimizeModule(ThreadSafeModule M, const MaterializationResponsibility &R) { // Create a function pass manager. auto FPM = llvm::make_unique<legacy::FunctionPassManager>(M.get()); |