| | | | --- | --- | | Bugzilla Link | [47144](https://llvm.org/bz47144) | | Version | trunk | | OS | Linux | | CC | @davidbolvansky,@efriedma-quic | ## Extended Description char *f(char *a, const char *b) { strcpy(a, b); return strchr(a, '\0'); } This can be optimized to `return stpcpy(a, b);`. This transformation is done by GCC, but not by LLVM.