mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 13:51:37 +00:00
Do not use dyn_cast<X>
after isa<X>
(NFC)
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 250883
This commit is contained in:
parent
3e5272af34
commit
a26e394644
@ -1428,7 +1428,7 @@ bool X86DAGToDAGISel::selectVectorAddr(SDNode *Parent, SDValue N, SDValue &Base,
|
||||
|
||||
// If Base is 0, the whole address is in index and the Scale is 1
|
||||
if (isa<ConstantSDNode>(Base)) {
|
||||
assert(dyn_cast<ConstantSDNode>(Base)->isNullValue() &&
|
||||
assert(cast<ConstantSDNode>(Base)->isNullValue() &&
|
||||
"Unexpected base in gather/scatter");
|
||||
Scale = getI8Imm(1, DL);
|
||||
Base = CurDAG->getRegister(0, MVT::i32);
|
||||
|
Loading…
Reference in New Issue
Block a user