I think the algorithm makes sense. I'm not sure it's different, though, than 
just passing up the first (or last) CXXBindTemporaryExpr visited for a given 
expression, which would look like this:

    // For a logical expression...
    VisitForTemporaryDtors(E->getLHS(), false, &LastBTE);
    const CXXBindTemporaryExpr *InnerBTE = nullptr;
    VisitForTemporaryDtors(E->getRHS(), false, &InnerBTE);
    InsertTempDtorDecisionBlock(InnerBTE);

Are there any cases that wouldn't cover?

http://reviews.llvm.org/D3627



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to