[VPlan] Improve style in match_combine_or (NFC) (#154793)
This commit is contained in:
parent
ee5367bedb
commit
2975e674ec
@ -153,11 +153,7 @@ template <typename LTy, typename RTy> struct match_combine_or {
|
|||||||
match_combine_or(const LTy &Left, const RTy &Right) : L(Left), R(Right) {}
|
match_combine_or(const LTy &Left, const RTy &Right) : L(Left), R(Right) {}
|
||||||
|
|
||||||
template <typename ITy> bool match(ITy *V) const {
|
template <typename ITy> bool match(ITy *V) const {
|
||||||
if (L.match(V))
|
return L.match(V) || R.match(V);
|
||||||
return true;
|
|
||||||
if (R.match(V))
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user