erichkeane accepted this revision. erichkeane added a comment. This revision is now accepted and ready to land.
In D94092#2479765 <https://reviews.llvm.org/D94092#2479765>, @fhahn wrote: > In D94092#2479753 <https://reviews.llvm.org/D94092#2479753>, @erichkeane > wrote: > >>> I tried a few different things to construct matrix_type attributes with >>> ArgIdents, but failed. The patch also adjusts the code for a bunch of >>> attributes. So if there are indeed cases where ArgIdents can show up, we >>> will get some examples for unit tests. >> >> The comment claims: "// Special case where the argument is a template id.". >> I would expect one of the following to hit that: >> https://godbolt.org/z/znYW1s >> >> > > I tried this snippet with the patch (and also an added ` > assert(!Attr.isArgIdent(0));` to `HandleVectorSizeAttr` just to be sure). > Compiled as expected, no crash. Hmm... then I believe that you are correct that this is dead code. I can't come up with any other template-ids that would cause this to work differently. I'll accept, but please give @aaron.ballman a day to take a look before submitting. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D94092/new/ https://reviews.llvm.org/D94092 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits