llvm.org GIT mirror llvm / eb093fb
Setjmp should always return zero if we don't implement longjmp. This avoids leaving trash in the register, fixing anagram git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7013 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
980980 case LLVMIntrinsic::longjmp:
981981 BuildMI(X86::CALLpcrel32, 1).addExternalSymbol("abort", true);
982982 case LLVMIntrinsic::setjmp:
983 // Setjmp always returns zero...
984 BuildMI(BB, X86::MOVir32, 1, getReg(CI)).addZImm(0);
983985 return;
984986 default: assert(0 && "Unknown intrinsic for X86!");
985987 }
980980 case LLVMIntrinsic::longjmp:
981981 BuildMI(X86::CALLpcrel32, 1).addExternalSymbol("abort", true);
982982 case LLVMIntrinsic::setjmp:
983 // Setjmp always returns zero...
984 BuildMI(BB, X86::MOVir32, 1, getReg(CI)).addZImm(0);
983985 return;
984986 default: assert(0 && "Unknown intrinsic for X86!");
985987 }