Permalink
Browse files

Fix broken DASSERT

  • Loading branch information...
1 parent 838db3e commit 57aab349e6adaa37e680cde4c84b0716a296c7a2 @lgritz lgritz committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/liboslexec/llvm_gen.cpp
@@ -3118,7 +3118,7 @@ LLVMGEN (llvm_gen_pointcloud_write)
Symbol& Pos = *rop.opargsym (op, 2);
DASSERT (Result.typespec().is_int() && Filename.typespec().is_string() &&
Pos.typespec().is_triple());
- DASSERTMSG (op.nargs() & 1, "must have an even number of attribs");
+ DASSERT ((op.nargs() & 1) && "must have an even number of attribs");
int nattrs = (op.nargs() - 3) / 2;
llvm::Value *nattrs_val = rop.llvm_constant (nattrs);

0 comments on commit 57aab34

Please sign in to comment.