diff options
author | Fangrui Song <maskray@google.com> | 2019-12-26 23:32:53 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-12-27 00:00:14 -0800 |
commit | 7a7334663cd44c857e4e573e6f6db9c987817801 (patch) | |
tree | d01ede00bd6f4aa3f65e6862d5e56612dea9dc78 /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
parent | ecbaf152f8fe2b5b8ebc633541e15158984f4db4 (diff) | |
download | bcm5719-llvm-7a7334663cd44c857e4e573e6f6db9c987817801.tar.gz bcm5719-llvm-7a7334663cd44c857e4e573e6f6db9c987817801.zip |
Delete llvm.{sig,}{setjmp,longjmp} remnant after r136821
Intrinsic has incorrect argument type!
i32 (i32*)* @llvm.setjmp
*wipes tear*
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 8cbd8bcaeab..5f78b9ec92d 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -254,34 +254,6 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { break; } - // The setjmp/longjmp intrinsics should only exist in the code if it was - // never optimized (ie, right out of the CFE), or if it has been hacked on - // by the lowerinvoke pass. In both cases, the right thing to do is to - // convert the call to an explicit setjmp or longjmp call. - case Intrinsic::setjmp: { - Value *V = ReplaceCallWith("setjmp", CI, CS.arg_begin(), CS.arg_end(), - Type::getInt32Ty(Context)); - if (!CI->getType()->isVoidTy()) - CI->replaceAllUsesWith(V); - break; - } - case Intrinsic::sigsetjmp: - if (!CI->getType()->isVoidTy()) - CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); - break; - - case Intrinsic::longjmp: { - ReplaceCallWith("longjmp", CI, CS.arg_begin(), CS.arg_end(), - Type::getVoidTy(Context)); - break; - } - - case Intrinsic::siglongjmp: { - // Insert the call to abort - ReplaceCallWith("abort", CI, CS.arg_end(), CS.arg_end(), - Type::getVoidTy(Context)); - break; - } case Intrinsic::ctpop: CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); break; |