From d1a22a94e6a7a64865108a66277d5daf5e77f959 Mon Sep 17 00:00:00 2001 From: Mengchi Zhang Date: Fri, 13 May 2022 11:46:12 -0700 Subject: [PATCH] [FRONTEND] Add empty return value and remove protect to open the access to contained_tys_vec_t (#514) Signed-off-by: Mengchi Zhang --- include/triton/ir/instructions.h | 1 + include/triton/ir/type.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/triton/ir/instructions.h b/include/triton/ir/instructions.h index c2d427ae8..9f4e18da8 100644 --- a/include/triton/ir/instructions.h +++ b/include/triton/ir/instructions.h @@ -475,6 +475,7 @@ protected: std::string get_eviction_policy_repr() const { if (eviction_ == EVICT_FIRST) return ".L1::evict_first"; if (eviction_ == EVICT_LAST) return ".L2::evict_last"; + return ""; } EVICTION_POLICY eviction_; CACHE_MODIFIER cache_; diff --git a/include/triton/ir/type.h b/include/triton/ir/type.h index 16a81cb5f..2c9d25294 100644 --- a/include/triton/ir/type.h +++ b/include/triton/ir/type.h @@ -21,7 +21,6 @@ class type { public: typedef std::vector block_shapes_t; -protected: typedef std::vector contained_tys_vec_t; typedef contained_tys_vec_t::iterator ty_iterator; typedef contained_tys_vec_t::const_iterator const_ty_iterator;