================
@@ -437,3 +439,10 @@ void no_CXXRecordDecl() {
 void checkReference(std::string &s) {
   const char *c = s.c_str();
 }
+
+const char *GH59870(int value) {
+  thread_local std::string retval;
+
+  retval = std::to_string(value);
+  return retval.c_str(); // no-warning
+}
----------------
benedekaibas wrote:

> The only way to find out is by reverting the supposed fix and see if it would 
> fire.

I have done this and figured out that it does fire. Applied changes here: 
[756496a](https://github.com/llvm/llvm-project/pull/241058/commits/756496a6acfb8d5f0c267067569178fff6d79503)

https://github.com/llvm/llvm-project/pull/241058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to