<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55771>55771</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-diff crashes when comparing two files
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ackelcn
      </td>
    </tr>
</table>

<pre>
    I used clang-diff to compare the attached two files. It crashes, and the message is as follows:

"clang-diff: /home/haozhong/dev/llvm/clang/include/clang/AST/Expr.h:1852: llvm::StringRef clang::StringLiteral::getString() const: Assertion `getCharByteWidth() == 1 && "This function is used in places that assume strings use char"' failed."
[code.zip](https://github.com/llvm/llvm-project/files/8796333/code.zip)
 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVkk1v5CAMhn8NuaBGGfJ9yGHa2UqV9rSttGcCTqBLIALS2fbXr8NMNXNdCWEw5rV5zOjk5_BCtwCSCsPt_CD1NNHoqHDLyj3QqIDyGLlQGBLPjk7aQMjpS6TC86AgEPZEuZUpcoEQ-AxUB8oDnZwx7hxIeSTFiRTfM2O3VHhGCXtWboHdcPelnJ1xKeEDZ2M-FjQpHq22wmwS7jzH1zecf_xdfa5Q69DVbJdM9zBteXyNXtv5F0yX9907f-oInpuLa4Z48RLWEdbj-22Iu9QxBPBRO0tJU2DUk-L-8TPCby2jugaT8oSDHvApDQ407E0hg2mzIl3FdWKsLV0NFxCQFo_IKGwL0JASpxAqUB6vE9bSiSNqme-7C7j6UTgJ-ZdeSX3C1CrGNdFlzzhmHdU25ti4G7jdPKzevYOIuE29Q9u1fVOW5c7xW5D1lyQ0k0Mp-7LnWdTRwHD3La4Np2cF9vpBsO7br8g2b4b_LkojhFRVXbftIVNDzad2Kioumqbr-6oYi66STdcwMTasn6rM8BFMGJAHsrFwpkli51SfMj2wgrGiLouiPTQ1yyWrWNHwqRH1oeRSkKqABdHmex2583Pmh1TSuM0BD40OMdwOsUd6tgApHerzLSrnBy7-gBE2S6mHVPo_H1wOWA">