Mercurial > octave-nkf
diff libinterp/interp-core/jit-typeinfo.h @ 15385:8ccb187b24e9
Erase partially created functions on JIT compilation failure (bug #37308)
* pt-jit.cc (tree_jit::optimize): Verify module in debug mode.
(jit_function_info::jit_function_info): Erase functions on failure.
author | Max Brister <max@2bass.com> |
---|---|
date | Fri, 14 Sep 2012 06:09:41 -0600 |
parents | 8355fddce815 |
children | 44272909d926 |
line wrap: on
line diff
--- a/libinterp/interp-core/jit-typeinfo.h Thu Sep 13 12:44:18 2012 -0700 +++ b/libinterp/interp-core/jit-typeinfo.h Fri Sep 14 06:09:41 2012 -0600 @@ -236,6 +236,9 @@ jit_function (const jit_function& fn); + // erase the interal LLVM function (if it exists). Will become invalid. + void erase (void); + template <typename T> void add_mapping (llvm::ExecutionEngine *engine, T fn) {