X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.cc;h=8dcc9d5124c6b064d7b2e0ad888d5aaa39a4e508;hb=07a0b575fabd521fb3f4a3f1f2483d46349c35dd;hp=3059e0d94be8a90c5db19ce0114cc44062f9c6aa;hpb=67fd0674445ff7f815fd37e704779df42f1714d7;p=c11tester.git diff --git a/action.cc b/action.cc index 3059e0d9..8dcc9d51 100644 --- a/action.cc +++ b/action.cc @@ -39,6 +39,7 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc, last_fence_release(NULL), node(NULL), cv(NULL), + rf_cv(NULL), value(value), type(type), order(order), @@ -73,6 +74,7 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc, last_fence_release(NULL), node(NULL), cv(NULL), + rf_cv(NULL), value(value), type(type), order(order), @@ -107,6 +109,7 @@ ModelAction::ModelAction(action_type_t type, const char * position, memory_order last_fence_release(NULL), node(NULL), cv(NULL), + rf_cv(NULL), value(value), type(type), order(order), @@ -142,6 +145,7 @@ ModelAction::ModelAction(action_type_t type, const char * position, memory_order last_fence_release(NULL), node(NULL), cv(NULL), + rf_cv(NULL), value(value), type(type), order(order), @@ -591,7 +595,7 @@ Node * ModelAction::get_node() const * Update the model action's read_from action * @param act The action to read from; should be a write */ -void ModelAction::set_read_from(const ModelAction *act) +void ModelAction::set_read_from(ModelAction *act) { ASSERT(act); @@ -601,7 +605,7 @@ void ModelAction::set_read_from(const ModelAction *act) uint64_t val = *((uint64_t *) location); ModelAction * act_initialized = (ModelAction *)act; act_initialized->set_value(val); - reads_from = (const ModelAction *)act_initialized; + reads_from = act_initialized; // disabled by WL, because LLVM IR is unable to detect atomic init /* model->assert_bug("May read from uninitialized atomic:\n"