llvm.org GIT mirror llvm / 55ebcf3
TableGen: Add 'static' to a large array to avoid a huge stack allocation Speculative fix for a -Wframe-larger-than warning from gcc. Clang will implicitly promote such constant arrays to globals, so in theory it won't hit this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213298 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
423423 }
424424
425425 // Emit the string itself.
426 O << " const char AsmStrs[] = {\n";
426 O << " static const char AsmStrs[] = {\n";
427427 StringTable.emit(O, printChar);
428428 O << " };\n\n";
429429