[FRONTEND] Add empty return value and remove protect to open the access to contained_tys_vec_t (#514)

Signed-off-by: Mengchi Zhang <mengchi@fb.com>
This commit is contained in:
Mengchi Zhang
2022-05-13 11:46:12 -07:00
committed by GitHub
parent d954a05989
commit d1a22a94e6
2 changed files with 1 additions and 1 deletions

View File

@@ -475,6 +475,7 @@ protected:
std::string get_eviction_policy_repr() const { std::string get_eviction_policy_repr() const {
if (eviction_ == EVICT_FIRST) return ".L1::evict_first"; if (eviction_ == EVICT_FIRST) return ".L1::evict_first";
if (eviction_ == EVICT_LAST) return ".L2::evict_last"; if (eviction_ == EVICT_LAST) return ".L2::evict_last";
return "";
} }
EVICTION_POLICY eviction_; EVICTION_POLICY eviction_;
CACHE_MODIFIER cache_; CACHE_MODIFIER cache_;

View File

@@ -21,7 +21,6 @@ class type {
public: public:
typedef std::vector<unsigned> block_shapes_t; typedef std::vector<unsigned> block_shapes_t;
protected:
typedef std::vector<type*> contained_tys_vec_t; typedef std::vector<type*> contained_tys_vec_t;
typedef contained_tys_vec_t::iterator ty_iterator; typedef contained_tys_vec_t::iterator ty_iterator;
typedef contained_tys_vec_t::const_iterator const_ty_iterator; typedef contained_tys_vec_t::const_iterator const_ty_iterator;