aaron.ballman added a comment. Given that this can't be expressed as a dynamic matcher, I'm wondering what the use case is for the matcher. Do you have a specific need for this functionality, or do you see this being generally useful? https://reviews.llvm.org/D28260