Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Assert that the pointer is not null when dereferenced.
[simgrid.git] / src / mc / compare.cpp
index 1f1512b..47cfabd 100644 (file)
@@ -1236,6 +1236,7 @@ static int compare_areas_with_type(simgrid::mc::StateComparator& state,
   int res;
 
   do {
+    xbt_assert(type != nullptr);
     switch (type->type) {
       case DW_TAG_unspecified_type:
         return 1;