commit | c2a24b8780251897d8c87fade523c3a0e7ca5d90 | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Wed Aug 15 20:11:21 2018 |
committer | Lang Hames <lhames@gmail.com> | Wed Aug 15 20:11:21 2018 |
tree | 75133625471060049f3fb814c0072397a026ff5d | |
parent | 30db32fcf12b8194df9f25b706b471bffff2515c [diff] |
[MCJIT] Fix a case of Error::success() being passed to report_fatal_error. MCJIT::getSymbolAddress was handling a non-fatal error condition of JITSymbol as fatal. JITSymbol::operator bool returns false if no address is available but no error is set. This can occur e.g. if the symbol name was not found. Patch by Jascha Wetzel. Thanks Jascha! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339809 91177308-0d34-0410-b5e6-96231b3b80d8