efriedma added a comment.

I'm not confident that isUsed() works the way you want it to in this context.  
In particular, if the code in question runs before we've translated the whole 
translation unit, the isUsed() bit could change.  If you want that's more 
obviously safe, you could just check if there are any captures.  (I'm assuming 
the point of this is just to reduce the number of lambdas that go through this 
codepath?)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154007/new/

https://reviews.llvm.org/D154007

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

Reply via email to