Unbreak buildbots.

llvm-svn: 273242
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 2db5225..21c0440 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -679,7 +679,7 @@
                                       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