mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Bitcode writer: fix a typo, using getName() instead of getSourceFileName()
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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -821,8 +821,8 @@ static uint64_t WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user