diff --git a/bolt/lib/Target/X86/X86MCPlusBuilder.cpp b/bolt/lib/Target/X86/X86MCPlusBuilder.cpp index ce8a4d69148544..387cf481ba304f 100644 --- a/bolt/lib/Target/X86/X86MCPlusBuilder.cpp +++ b/bolt/lib/Target/X86/X86MCPlusBuilder.cpp @@ -2197,7 +2197,7 @@ class X86MCPlusBuilder : public MCPlusBuilder { MO->BaseRegNum != X86::RIP && MO->BaseRegNum != X86::RBP && MO->BaseRegNum != X86::NoRegister && MO->IndexRegNum == X86::NoRegister && - MO->SegRegNum == X86::NoRegister && MO->BaseRegNum != X86::RIP) { + MO->SegRegNum == X86::NoRegister) { VtableRegNum = MO->BaseRegNum; MethodOffset = MO->DispImm; MethodFetchInsns.push_back(&CurInst);