Fix typo
[c11tester.git] / action.cc
index df73d2099cc7641be668e03878bfc29f61e190fc..ee980b875988b362a2f6c3402be8dc5e795b69d7 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -41,7 +41,7 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc,
        trace_ref(NULL),
        thrdmap_ref(NULL),
        action_ref(NULL),
-       func_act_ref(NULL),
+       func_ref_count(0),
        value(value),
        type(type),
        original_type(ATOMIC_NOP),
@@ -78,7 +78,7 @@ ModelAction::ModelAction(action_type_t type, memory_order order, uint64_t value,
        trace_ref(NULL),
        thrdmap_ref(NULL),
        action_ref(NULL),
-       func_act_ref(NULL),
+       func_ref_count(0),
        value(value),
        type(type),
        original_type(ATOMIC_NOP),
@@ -114,7 +114,7 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc,
        trace_ref(NULL),
        thrdmap_ref(NULL),
        action_ref(NULL),
-       func_act_ref(NULL),
+       func_ref_count(0),
        value(value),
        type(type),
        original_type(ATOMIC_NOP),
@@ -154,7 +154,7 @@ ModelAction::ModelAction(action_type_t type, const char * position, memory_order
        trace_ref(NULL),
        thrdmap_ref(NULL),
        action_ref(NULL),
-       func_act_ref(NULL),
+       func_ref_count(0),
        value(value),
        type(type),
        original_type(ATOMIC_NOP),
@@ -195,7 +195,7 @@ ModelAction::ModelAction(action_type_t type, const char * position, memory_order
        trace_ref(NULL),
        thrdmap_ref(NULL),
        action_ref(NULL),
-       func_act_ref(NULL),
+       func_ref_count(0),
        value(value),
        type(type),
        original_type(ATOMIC_NOP),
@@ -623,7 +623,7 @@ uint64_t ModelAction::get_reads_from_value() const
  */
 uint64_t ModelAction::get_write_value() const
 {
-       ASSERT(is_write() || is_free());
+       ASSERT(is_write());
        return value;
 }