[all-commits] [llvm/llvm-project] c8e087: [TableGen] emitStringLiteralDef: Pad trailing '\0'...

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Mon May 23 14:25:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8e087082927e289bae328dc6dd07fe02b3341b1
      https://github.com/llvm/llvm-project/commit/c8e087082927e289bae328dc6dd07fe02b3341b1
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    M llvm/utils/TableGen/SequenceToOffsetTable.h

  Log Message:
  -----------
  [TableGen] emitStringLiteralDef: Pad trailing '\0' at the end of char array.

Fixup for https://reviews.llvm.org/D73044
String literal has an implicit terminator '\0'. This commit adjusts char array
to long literal.

This causes difference of artifacts between -long-string-literals=true
and false.

Differential Revision: https://reviews.llvm.org/D126136




More information about the All-commits mailing list