Bug 1210924 - Do not fire read barriers when using ReadBarriered in a boolean context; r=sfink

This commit is contained in:
Terrence Cole 2015-10-02 12:04:08 -07:00
parent 48a2601390
commit 2cb88d17ac

View File

@ -577,6 +577,10 @@ class ReadBarriered : public ReadBarrieredBase<T>
return this->value;
}
explicit operator bool() const {
return bool(this->value);
}
operator const T() const { return get(); }
const T operator->() const { return get(); }