Ka-Ka added a comment.

In https://reviews.llvm.org/D37428#861140, @dblaikie wrote:

> Not sure what you mean by "avoid emitting unnecessary stop points" - do you 
> have a test case for that?


In my previous patch you could end up doing two calls to EmitStopPoint() for 
the same statement. In the previous patch I added a EmitStopPoint() in the 
method EmitAttributedStmt(), but if you took the default clause in the switch 
statement in the same method you could end up executing another EmitStopPoint() 
in EmitStmt().

The new patch do not have the issue with executing EmitStopPoint() twice for 
the same statement. I think generally that the new patch is more robust 
solution.


https://reviews.llvm.org/D37428



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

Reply via email to