When emitting the source filename, the encoding of the string
was checked against the name instead of the filename.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 261019
// Emit the module's source file name.
{
- StringEncoding Bits =
- getStringEncoding(M->getName().data(), M->getName().size());
+ StringEncoding Bits = getStringEncoding(M->getSourceFileName().data(),
+ M->getSourceFileName().size());
BitCodeAbbrevOp AbbrevOpToUse = BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 8);
if (Bits == SE_Char6)
AbbrevOpToUse = BitCodeAbbrevOp(BitCodeAbbrevOp::Char6);