[llvm] [Cygwin] Fix the regression caused by commit c04a05d898982614a2df80d928b97ed4f8c49b60, that, in Cygwin, Clang can't bootstrap. (PR #74978)
εΎζζ Xu Chiheng via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 9 22:58:53 PST 2023
https://github.com/xu-chiheng created https://github.com/llvm/llvm-project/pull/74978
None
>From b73b461c978d43387cd0f14e28403055149d7290 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=90=E6=8C=81=E6=81=92=20Xu=20Chiheng?=
<chiheng.xu at gmail.com>
Date: Sun, 10 Dec 2023 14:56:55 +0800
Subject: [PATCH] 1
---
llvm/lib/Target/X86/X86ISelLowering.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index d69976342fcbd0..a6e03f23c71729 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -18300,6 +18300,7 @@ unsigned X86TargetLowering::getGlobalWrapperKind(
// The following OpFlags under RIP-rel PIC use RIP.
if (Subtarget.isPICStyleRIPRel() &&
+ !(Subtarget.isTargetWindowsCygwin() && Subtarget.isTargetWin64()) &&
(OpFlags == X86II::MO_NO_FLAG || OpFlags == X86II::MO_COFFSTUB ||
OpFlags == X86II::MO_DLLIMPORT))
return X86ISD::WrapperRIP;
More information about the llvm-commits
mailing list