diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 13:15:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 13:15:05 +0000 |
commit | 5c03f3e190559347c835382d61bb1b590e74aa4c (patch) | |
tree | 54cc0540ba8329a60b548bb7a6156f2a5e581401 /lib/Target/X86/X86FastISel.cpp | |
parent | b7eb8e35e481a74962664b63dfb09483b200209a (diff) | |
download | src-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.cpp | 4 |
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. |