efriedma added a comment.

For (1), I can see your point that it's sort of a balancing act.  But 
generally, I'm concerned about making fragile assumptions: here, that 
LocalDeclMap contains precisely the two ImplicitParmDecls for the arguments, 
and nothing else.  If we are going to assume that, I'd prefer stronger 
assertions so we don't accidentally break that assumption in the future.

re: (2), I don't have a problem using the LocalDeclMap, just the part where you 
scan it using some fragile assumptions.  I was thinking you would save the 
ImplicitParmDecl*, not the actual alloca.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77982



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

Reply via email to