NoQ added a comment. Herald added a subscriber: Charusso. In D46421#1382017 <https://reviews.llvm.org/D46421#1382017>, @martong wrote:
> > I think you should change back to getInit() > > I am not entirely sure about this because the initalizer may not be attached > to the canonical decl. `getInit()` gives the initializer of one given > specific Decl, however, `getAnyInitializer()` searches through the whole > redecl chain. Ugh, indeed. `getDefinition()` is also not the thing we're looking for. What a mess :) Tests are welcome!~ P.S. I don't intend to block this patch; you guys know your stuff, i'm just displaying a bit of curiosity and observing how it unfolds. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D46421/new/ https://reviews.llvm.org/D46421 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits