[PATCH] D27156: Add `isRelExprOneOf` helper (alternative to D27145).

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 29 22:55:33 PST 2016


ruiu added a comment.

I agree that at the call side this looks better, but after reviewing the previous one again, I think I still prefer the previous one, because recursive templates are more complicated than the original simple-minded constexpr containing a for-loop. In practice, static_assert'ing on R_END would be enough as a protection.


https://reviews.llvm.org/D27156





More information about the llvm-commits mailing list