[llvm-commits] Workaround for PR1508

Duncan Sands baldrick at free.fr
Fri Jun 15 12:05:28 PDT 2007


> Ah, another minor simplification:
> 
> +/// isFilterOrSelector - Return true if this instruction is a call  
> to the
> +/// eh.filter or the eh.selector intrinsic.
> +static bool isFilterOrSelector(Instruction *I) {
>    if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I))
>      return II->getIntrinsicID() == Intrinsic::eh_selector
>        || II->getIntrinsicID() == Intrinsic::eh_filter;
>    return false;
> }

That's pretty slick!  Applied with this change.

Thanks for reviewing,

Duncan.



More information about the llvm-commits mailing list