forked from OSchip/llvm-project
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. llvm-svn: 213298
This commit is contained in:
parent
bd927b6457
commit
132c40fdbb
|
@ -424,7 +424,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
|
|||
}
|
||||
|
||||
// Emit the string itself.
|
||||
O << " const char AsmStrs[] = {\n";
|
||||
O << " static const char AsmStrs[] = {\n";
|
||||
StringTable.emit(O, printChar);
|
||||
O << " };\n\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue