Description
There are various places in the LLVM code which can call report_fatal_error() when certain fatal error conditions are hit (e.g. failure to allocate memory). The call will trigger an exit() eventually. We should instead handle these failure cases gracefully and let the query carry on without codegen.
Addr = IsCode ? MemMgr.allocateCodeSection(Allocate, Alignment, SectionID, Name) : MemMgr.allocateDataSection(Allocate, Alignment, SectionID, Name, IsReadOnly); if (!Addr) report_fatal_error("Unable to allocate section memory!");