mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed issue with splat locals named 'alias'
This commit is contained in:
parent
665f88650a
commit
62a28e46be
1 changed files with 1 additions and 1 deletions
|
@ -3234,7 +3234,7 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
|
||||||
// This $alias$ hack is unfortunate, but LLVM gets confused when we attempt to tie multiple debug variables
|
// This $alias$ hack is unfortunate, but LLVM gets confused when we attempt to tie multiple debug variables
|
||||||
// to the same memory location, which can happen during mixin injection. The result is that the mixin gets
|
// to the same memory location, which can happen during mixin injection. The result is that the mixin gets
|
||||||
// some premature instructions attributed to it from the variable declaration. This fixes that.
|
// some premature instructions attributed to it from the variable declaration. This fixes that.
|
||||||
if (aliasPos != NULL)
|
if ((aliasPos != NULL) && (aliasPos > localVar->mName))
|
||||||
{
|
{
|
||||||
String findName = String(aliasPos + 7);
|
String findName = String(aliasPos + 7);
|
||||||
localVar->mName = CvDupString(localVar->mName + 1, aliasPos - localVar->mName - 1);
|
localVar->mName = CvDupString(localVar->mName + 1, aliasPos - localVar->mName - 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue