[llvm-commits] [llvm] r40453 - /llvm/trunk/lib/VMCore/Verifier.cpp

Chris Lattner clattner at apple.com
Mon Jul 23 16:29:19 PDT 2007


> +      if (Attrs->paramHasAttr(Idx, ParamAttr::NoReturn))
> +        Assert1(0, "Attribute NoReturn should only be applied to  
> function", &F);

Why not:
Assert1(!Attrs->paramHasAttr(Idx, ParamAttr::NoReturn),
         "Attribute NoReturn should only be applied to function", &F);

?

> +      if (Attrs->paramHasAttr(Idx, ParamAttr::NoUnwind))
> +        Assert1(0, "Attribute NoUnwind should only be applied to  
> function", &F);
>      }
>    }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list