Skylion007 added a comment. Currently, this check also tries to move static values which is very undesirable and unlikely to be correct.
static auto value = std::string("CONSTANT"); - return value; + return std::move(value); Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137205/new/ https://reviews.llvm.org/D137205 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits