diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-01-15 15:37:28 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-01-15 15:37:28 +0000 | 
| commit | 829000e035f46f2a227a5466e4e427a2f3cc00a9 (patch) | |
| tree | be5a687969f682edded4aa6f13594ffd9aa9030e /lib/CodeGen/IntrinsicLowering.cpp | |
| parent | 1e7804dbd25b8dbf534c850355d70ad215206f4b (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/IntrinsicLowering.cpp')
| -rw-r--r-- | lib/CodeGen/IntrinsicLowering.cpp | 10 | 
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index 8a3bd0bf4e00f..9997a48442519 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -349,12 +349,12 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {    case Intrinsic::setjmp: {      Value *V = ReplaceCallWith("setjmp", CI, CI->op_begin() + 1, CI->op_end(),                                 Type::getInt32Ty(Context)); -    if (CI->getType() != Type::getVoidTy(Context)) +    if (!CI->getType()->isVoidTy())        CI->replaceAllUsesWith(V);      break;    }    case Intrinsic::sigsetjmp: -     if (CI->getType() != Type::getVoidTy(Context)) +     if (!CI->getType()->isVoidTy())         CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));       break; @@ -427,10 +427,6 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {      break;    } -  case Intrinsic::dbg_stoppoint: -  case Intrinsic::dbg_region_start: -  case Intrinsic::dbg_region_end: -  case Intrinsic::dbg_func_start:    case Intrinsic::dbg_declare:      break;    // Simply strip out debugging intrinsics @@ -512,7 +508,7 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {    }    case Intrinsic::flt_rounds:       // Lower to "round to the nearest" -     if (CI->getType() != Type::getVoidTy(Context)) +     if (!CI->getType()->isVoidTy())         CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));       break;    case Intrinsic::invariant_start:  | 
