[lld] r273242 - Unbreak buildbots.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 22:01:32 PDT 2016


Author: ruiu
Date: Tue Jun 21 00:01:31 2016
New Revision: 273242

URL: http://llvm.org/viewvc/llvm-project?rev=273242&view=rev
Log:
Unbreak buildbots.

Modified:
    lld/trunk/ELF/Target.cpp

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=273242&r1=273241&r2=273242&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Tue Jun 21 00:01:31 2016
@@ -679,7 +679,7 @@ void X86_64TargetInfo::relaxTlsIeToLe(ui
                                       uint64_t Val) const {
   uint8_t *Inst = Loc - 3;
   uint8_t Reg = Loc[-1] >> 3;
-  uint8_t RegSlot = Loc - 1;
+  uint8_t *RegSlot = Loc - 1;
 
   // Note that LEA with RSP or R12 is converted to ADD instead of LEA
   // because LEA with these registers needs 4 bytes to encode and thus




More information about the llvm-commits mailing list