Another portability patch graciously provided by Casey Carter
authorChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 14:41:38 +0000 (14:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 14:41:38 +0000 (14:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3698 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index 082823ade7beb4c7bed21e4de7cff35c1bb8b49a..909f568a582521be933024d76312c11f656d4109 100644 (file)
@@ -1153,7 +1153,7 @@ bool Interpreter::executeInstruction() {
   if (int SigNo = sigsetjmp(SignalRecoverBuffer, 1)) {
     --SF.CurInst;   // Back up to erroring instruction
     if (SigNo != SIGINT) {
-      cout << "EXCEPTION OCCURRED [" << _sys_siglistp[SigNo] << "]:\n";
+      cout << "EXCEPTION OCCURRED [" << strsignal(SigNo) << "]:\n";
       printStackTrace();
       // If -abort-on-exception was specified, terminate LLI instead of trying
       // to debug it.