r309484 - Fix incorrect assertion condition.

Victor Leschuk via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 29 01:18:38 PDT 2017


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())




More information about the cfe-commits mailing list