Limit inline asm check to same section

This commit is contained in:
drmortalwombat 2024-01-27 17:50:53 +01:00
parent 4901e015f6
commit b3d80bcb0f

View File

@ -12807,7 +12807,7 @@ void NativeCodeBasicBlock::CallAssembler(InterCodeProcedure* proc, NativeCodePro
assert(ins->mSrc[0].mLinkerObject); assert(ins->mSrc[0].mLinkerObject);
if (ins->mCode == IC_ASSEMBLER && (proc->mCompilerOptions & COPT_OPTIMIZE_ASSEMBLER)) if (ins->mCode == IC_ASSEMBLER && (proc->mCompilerOptions & COPT_OPTIMIZE_ASSEMBLER) && ins->mSrc[0].mLinkerObject->mSection == proc->mLinkerObject->mSection)
{ {
ExpandingArray<NativeCodeInstruction> tains; ExpandingArray<NativeCodeInstruction> tains;