rjmccall added a comment.

You can't just consider the declared function signatures; `memcpy`ing two 
non-empty objects with perfect overlap is a violation of `restrict`, and yet 
IIRC GCC is known to assume that that works in some places.  (I can't duplicate 
that off-hand, though — GCC seems determined to generate inlined `memcpy`s in 
my quick efforts to test this.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86993

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

Reply via email to