rjmccall added a comment.

If multiple cleanups can be entered, the appropriate thing to do is enter a 
RunCleanupsScope of some sort and then pop it at the right time.  But you 
should find out why the cleanup is being entered — it's possible that it's not 
being properly bound to a full-expression, in which case cleaning it up at the 
end of the collection is inappropriate, because it actually needs to be cleaned 
up before the loop body is ever entered.


http://reviews.llvm.org/D18618



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

Reply via email to