[Codegen][X86] Fix /HOTPATCH with clang-cl and inline asm (https://github.com/llvm/llvm-project/pull/87639)
This fixes an edge case where functions starting with inline assembly
would assert while trying to lower that inline asm instruction.
After this PR, for now we always add a no-op (xchgw in this case) without
considering the size of the next inline asm instruction. We might want
to revisit this in the future.
This fixes Unreal Engine 5.3.2 compilation with clang-cl and /HOTPATCH.
Please merge the following patch:
> [Codegen][X86] Fix /HOTPATCH with clang-cl and inline asm (https://github.com/llvm/llvm-project/pull/87639)
> This fixes an edge case where functions starting with inline assembly
> would assert while trying to lower that inline asm instruction.
>
> After this PR, for now we always add a no-op (xchgw in this case) without
> considering the size of the next inline asm instruction. We might want
> to revisit this in the future.
>
> This fixes Unreal Engine 5.3.2 compilation with clang-cl and /HOTPATCH.
>
> Should close https://github.com/llvm/llvm-project/issues/56234
>
/cherry-pick ec1af63dde58c735fe60d6f2aafdb10fa93f410d
Please merge the following patch:
/cherry-pick ec1af63dde58c735fe60d6f2aafdb10fa93f410d