[llvm-commits] [dragonegg] r158444 - /dragonegg/trunk/src/Convert.cpp

Duncan Sands baldrick at free.fr
Thu Jun 14 00:22:24 PDT 2012


Author: baldrick
Date: Thu Jun 14 02:22:24 2012
New Revision: 158444

URL: http://llvm.org/viewvc/llvm-project?rev=158444&view=rev
Log:
Explicitly convert this pointer to a boolean.

Modified:
    dragonegg/trunk/src/Convert.cpp

Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=158444&r1=158443&r2=158444&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Thu Jun 14 02:22:24 2012
@@ -6632,7 +6632,7 @@
     return DefineSSAName(reg, UndefValue::get(getRegType(TREE_TYPE(reg))));
 
   // Read the initial value of the parameter and associate it with the ssa name.
-  assert(DECL_LOCAL_IF_SET(var) && "Parameter not laid out?");
+  assert(DECL_LOCAL_IF_SET(var) != 0 && "Parameter not laid out?");
 
   unsigned Alignment = DECL_ALIGN(var);
   assert(Alignment != 0 && "Parameter with unknown alignment!");





More information about the llvm-commits mailing list