OSDN Git Service

[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)
commitc0edd71cfffa10bcd928c54d4ee4ec2062a5203f
tree30fae10ab0451ac4ecbd857dcddc67c64207988b
parentd48017b0a1831296ee45dd21a65a72a34d7d3ff5
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp