================
@@ -10471,8 +10471,8 @@ void
SemaCodeCompletion::CodeCompleteAvailabilityPlatformName() {
CodeCompleter->getCodeCompletionTUInfo(),
CodeCompletionContext::CCC_Other);
Results.EnterNewScope();
- static const char *Platforms[] = {"macOS", "iOS", "watchOS", "tvOS"};
- for (const char *Platform : llvm::ArrayRef(Platforms)) {
+ constexpr const char *Platforms[] = {"macOS", "iOS", "watchOS", "tvOS"};
----------------
efriedma-quic wrote:
Copy to stack.
https://github.com/llvm/llvm-project/pull/183287
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits