================
@@ -2734,6 +2734,39 @@ void cl::PrintHelpMessage(bool Hidden, bool Categorized) 
{
     CommonOptions->CategorizedHiddenPrinter.printHelp();
 }
 
+ArrayRef<StringRef> cl::CompilerBuildConfig = {
----------------
porglezomp wrote:

I footgunned here, this doesn't do lifetime extension so this array is a 
temporary despite being a global. Making this a function to additionally avoid 
having a static constructor.

https://github.com/llvm/llvm-project/pull/87585
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to