[X86] Remove part of an if condition that should always be true.
authorCraig Topper <craig.topper@intel.com>
Thu, 25 Apr 2019 06:08:02 +0000 (06:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 25 Apr 2019 06:08:02 +0000 (06:08 +0000)
commit013503c78d7b648152a07022e75b98219aba2ba9
treed6cdb8d318014e61145fbb2fb40b75e197d63bd5
parent64eb9a95bebd577158576ba6a5c9baabf314d4c9
[X86] Remove part of an if condition that should always be true.

The IndexReg will always be non-null at this point. Earlier in the function, if
IndexReg was null we set it to CurDAG->getRegister(0, VT) which made it
non-null.

llvm-svn: 359170
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp