[VPlan] Improve style in match_combine_or (NFC) (#154793)

This commit is contained in:
Ramkumar Ramachandra 2025-08-22 12:01:42 +01:00 committed by GitHub
parent ee5367bedb
commit 2975e674ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {}
template <typename ITy> bool match(ITy *V) const {
if (L.match(V))
return true;
if (R.match(V))
return true;
return false;
return L.match(V) || R.match(V);
}
};