rsmith added a comment.

Please handle this by temporarily updating the `This` pointer appropriately 
when evaluating the `CXXDefaultInitExpr` rather than trying to work around the 
`This` value being wrong later (your approach will still go wrong if the `This` 
pointer is used in other ways, such as an explicit mention of `this` or a 
member function call). You can refer to how we do this in CodeGen: look for 
`CodeGenFunction::CXXDefaultInitExprScope` and 
`CodeGenFunction::FieldConstructionScope`.


https://reviews.llvm.org/D42498



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to