[PATCH] D126136: [TableGen] emitStringLiteralDef: Pad trailing '\0' at the end of char array.
NAKAMURA Takumi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 14:25:42 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc8e087082927: [TableGen] emitStringLiteralDef: Pad trailing '\0' at the end of char array. (authored by chapuni).
Changed prior to commit:
https://reviews.llvm.org/D126136?vs=431188&id=431481#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126136/new/
https://reviews.llvm.org/D126136
Files:
llvm/utils/TableGen/SequenceToOffsetTable.h
Index: llvm/utils/TableGen/SequenceToOffsetTable.h
===================================================================
--- llvm/utils/TableGen/SequenceToOffsetTable.h
+++ llvm/utils/TableGen/SequenceToOffsetTable.h
@@ -173,7 +173,7 @@
if (!EmitLongStrLiterals) {
OS << Decl << " = {\n";
emit(OS, printChar, "0");
- OS << "\n};\n\n";
+ OS << " 0\n};\n\n";
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126136.431481.patch
Type: text/x-patch
Size: 409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220523/cae11d5c/attachment.bin>
More information about the llvm-commits
mailing list