mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Fix lli to print an error and exit when EE returns null but no string. Patch
by Eric Rannaud! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
393aec6a44
commit
fd15beefee
@ -147,8 +147,11 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
InitializeNativeTarget();
|
||||
|
||||
EE = ExecutionEngine::create(MP, ForceInterpreter, &ErrorMsg, OLvl);
|
||||
if (!EE && !ErrorMsg.empty()) {
|
||||
std::cerr << argv[0] << ":error creating EE: " << ErrorMsg << "\n";
|
||||
if (!EE) {
|
||||
if (!ErrorMsg.empty())
|
||||
std::cerr << argv[0] << ": error creating EE: " << ErrorMsg << "\n";
|
||||
else
|
||||
std::cerr << argv[0] << ": unknown error creating EE!\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user