r309484 - Fix incorrect assertion condition.

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 31 10:20:53 PDT 2017


Thank you!

vedant

> On Jul 29, 2017, at 1:18 AM, Victor Leschuk via cfe-commits <cfe-commits at lists.llvm.org> wrote:
> 
> Author: vleschuk
> Date: Sat Jul 29 01:18:38 2017
> New Revision: 309484
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=309484&view=rev
> Log:
> Fix incorrect assertion condition.
> 
> Modified:
>    cfe/trunk/lib/CodeGen/CGBuiltin.cpp
> 
> Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=309484&r1=309483&r2=309484&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Sat Jul 29 01:18:38 2017
> @@ -643,8 +643,8 @@ struct CallObjCArcUse final : EHScopeSta
> 
> Value *CodeGenFunction::EmitCheckedArgForBuiltin(const Expr *E,
>                                                  BuiltinCheckKind Kind) {
> -  assert(Kind == BCK_CLZPassedZero ||
> -         Kind == BCK_CTZPassedZero && "Unsupported builtin check kind");
> +  assert((Kind == BCK_CLZPassedZero || Kind == BCK_CTZPassedZero)
> +          && "Unsupported builtin check kind");
> 
>   Value *ArgValue = EmitScalarExpr(E);
>   if (!SanOpts.has(SanitizerKind::Builtin) || !getTarget().isCLZForZeroUndef())
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list