diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-07-05 18:30:52 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-07-05 18:30:52 +0000 |
commit | 4d950ef892b13100b2025108605ae1b0a3a96c64 (patch) | |
tree | b1e07455f3f297f5b63b1dcbd4026bc4a18fb5cd /llvm/lib/Target/ARM/ARMISelLowering.cpp | |
parent | 2d7938950850bbe77597c27c9bb743d9174468f3 (diff) | |
download | bcm5719-llvm-4d950ef892b13100b2025108605ae1b0a3a96c64.tar.gz bcm5719-llvm-4d950ef892b13100b2025108605ae1b0a3a96c64.zip |
ARM: fix `-mlong-calls` for WoA
Not all code-paths set the relocation model to static for Windows. This
currently breaks on Windows ARM with `-mlong-calls` when built with clang.
Loosen the assertion to what it was previously. We would ideally ensure that
all the configuration sets Windows to static relocation model.
llvm-svn: 274570
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index a9a56303dff..66ece65c447 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -1814,7 +1814,7 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI, auto PtrVt = getPointerTy(DAG.getDataLayout()); if (Subtarget->genLongCalls()) { - assert(!isPositionIndependent() && + assert((!isPositionIndependent() || Subtarget->isTargetWindows()) && "long-calls codegen is not position independent!"); // Handle a global address or an external symbol. If it's not one of // those, the target's already in a register, so we don't need to do |