Silence unused warning in non-assert builds.

llvm-svn: 236213
This commit is contained in:
Daniel Jasper 2015-04-30 09:01:21 +00:00
parent 0366cd23ac
commit 232778a7a0

View File

@ -1344,8 +1344,9 @@ bool X86DAGToDAGISel::SelectVectorAddr(SDNode *Parent, SDValue N, SDValue &Base,
Scale = getI8Imm(ScalarSize/8, DL);
// If Base is 0, the whole address is in index and the Scale is 1
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Base)) {
assert(C->isNullValue() && "Unexpected base in gather/scatter");
if (isa<ConstantSDNode>(Base)) {
assert(dyn_cast<ConstantSDNode>(Base)->isNullValue() &&
"Unexpected base in gather/scatter");
Scale = getI8Imm(1, DL);
Base = CurDAG->getRegister(0, MVT::i32);
}