================
@@ -218,9 +241,14 @@ void FactsGenerator::VisitMaterializeTemporaryExpr(
const MaterializeTemporaryExpr *MTE) {
if (!hasOrigin(MTE))
return;
- // A temporary object's origin is the same as the origin of the
- // expression that initializes it.
- killAndFlowOrigin(*MTE, *MTE->getSubExpr());
+ if (getChildBinding(MTE)) {
----------------
AbhinavPradeep wrote:
That is not reflected here, it will be in future iterations. For the future
iterations, I believe my next PR would be in handling the case of non
lifetime-extended general temporaries. I believe @usx95 suggested that I should
choose to not track the MTE if I detect it is lifetime extended?
https://github.com/llvm/llvm-project/pull/172007
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits