This patch fixes two bugs that arise when a 'defm' inherits from a multiclass and also from a class with assertions. I discovered them while adding assertions to the Clang TableGen files.
I'm not sure whether this warrants a Phabricator review, but it certainly can't hurt.
I'd expect TableGen to report only the first assertion failure and abort immediately. What's the logic behind the current behavior?