EricWF planned changes to this revision. EricWF added a comment. This patch currently triggers an assertion in `SemaDecl.cpp:12290` `assert(MaybeODRUseExprs.empty() && "Leftover expressions for odr-use checking");`
I'll have to come up with a fix for that before this is committed. Unfortunately the easy fix of calling `MakeVarDeclReferenced` or similar doesn't work. I suspect this is due to the current active scope when `ActOnFinishFunctionBody` is called. https://reviews.llvm.org/D31562 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits