zygoloid wrote:

> > Can we remove `getAddressOfPointer` instead?. Where is it being used?
> 
> It is used in `VarDecl::getInitAddress()` in Decl.cpp. It looks like it is 
> used indirectly by the StmtIterator

And that in turn is used in `StmtIterator`, and indeed we can end up *storing 
through* the type-punned `Stmt*` here:

https://github.com/llvm/llvm-project/blob/9930a5a3338ba642c52292107e0f729328d79034/clang/lib/Frontend/Rewrite/RewriteObjC.cpp#L4561

(and also in `RewriteModernObjC.cpp`). Are the ObjC rewriters still in use? Can 
we remove them? If not it looks like we'll need to do some substantial rewrites.

https://github.com/llvm/llvm-project/pull/111995
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to