mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Setjmp should always return zero if we don't implement longjmp. This avoids
leaving trash in the register, fixing anagram llvm-svn: 7013
This commit is contained in:
parent
a00e8c6732
commit
d212141d9e
@ -981,6 +981,8 @@ void ISel::visitIntrinsicCall(LLVMIntrinsic::ID ID, CallInst &CI) {
|
||||
case LLVMIntrinsic::longjmp:
|
||||
BuildMI(X86::CALLpcrel32, 1).addExternalSymbol("abort", true);
|
||||
case LLVMIntrinsic::setjmp:
|
||||
// Setjmp always returns zero...
|
||||
BuildMI(BB, X86::MOVir32, 1, getReg(CI)).addZImm(0);
|
||||
return;
|
||||
default: assert(0 && "Unknown intrinsic for X86!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user