model: add 'const'
[model-checker.git] / model.cc
index f0763cbfca28971b9dfd36a0fe5e76dcae41f8aa..7ce959e90b9c5aeaf649df1f422868a63aa34421 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -2049,7 +2049,7 @@ bool ModelChecker::w_modification_order(ModelAction *curr, ModelVector<ModelActi
 /** Arbitrary reads from the future are not allowed.  Section 29.3
  * part 9 places some constraints.  This method checks one result of constraint
  * constraint.  Others require compiler support. */
-bool ModelChecker::thin_air_constraint_may_allow(const ModelAction *writer, const ModelAction *reader)
+bool ModelChecker::thin_air_constraint_may_allow(const ModelAction *writer, const ModelAction *reader) const
 {
        if (!writer->is_rmw())
                return true;