aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-08-04 13:15:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-08-04 13:15:05 +0000
commit5c03f3e190559347c835382d61bb1b590e74aa4c (patch)
tree54cc0540ba8329a60b548bb7a6156f2a5e581401 /lib/Target/X86/X86FastISel.cpp
parentb7eb8e35e481a74962664b63dfb09483b200209a (diff)
downloadsrc-vendor/llvm/llvm-release_70-r338892.tar.gz
src-vendor/llvm/llvm-release_70-r338892.zip
Vendor import of llvm release_70 branch r338892:vendor/llvm/llvm-release_70-r338892
Diffstat (limited to 'lib/Target/X86/X86FastISel.cpp')
-rw-r--r--lib/Target/X86/X86FastISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index 35a15577fe09..d082b42eefa9 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -738,6 +738,10 @@ bool X86FastISel::handleConstantAddresses(const Value *V, X86AddressMode &AM) {
if (GV->isThreadLocal())
return false;
+ // Can't handle !absolute_symbol references yet.
+ if (GV->isAbsoluteSymbolRef())
+ return false;
+
// RIP-relative addresses can't have additional register operands, so if
// we've already folded stuff into the addressing mode, just force the
// global value into its own register, which we can use as the basereg.