Chromium Code Reviews| Index: src/types.h |
| diff --git a/src/types.h b/src/types.h |
| index 99a809dc10d06ae5108e2c64667982c867018d0a..48b39335b63dcd5c4da0f468f30afd4efaa409d4 100644 |
| --- a/src/types.h |
| +++ b/src/types.h |
| @@ -560,6 +560,10 @@ struct BoundsImpl { |
| TypeHandle upper = Type::Intersect(b.upper, t, region); |
| return BoundsImpl(lower, upper); |
| } |
| + |
| + bool Narrows(BoundsImpl that) { |
| + return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
| + } |
| }; |
| typedef BoundsImpl<ZoneTypeConfig> Bounds; |