[llvm] [X86] Fix crash when calling through __ptr32 function pointer (PR #209078)
Muhammed Shiyas N via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 01:31:23 PDT 2026
================
@@ -2589,6 +2589,17 @@ X86TargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
Callee.getValueType() == MVT::i32) {
// Zero-extend the 32-bit Callee address into a 64-bit according to x32 ABI
Callee = DAG.getNode(ISD::ZERO_EXTEND, dl, MVT::i64, Callee);
+ } else if (Is64Bit && Callee.getValueType() == MVT::i32) {
----------------
Shiyas-N wrote:
Moved the __ptr32 callee extension logic out of the if/else chain
https://github.com/llvm/llvm-project/pull/209078
More information about the llvm-commits
mailing list