From: Mehdi Amini Date: Wed, 21 Oct 2015 06:11:01 +0000 (+0000) Subject: Do not use `dyn_cast` after `isa` (NFC) X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=d63954dac10035f92809d09ad852caf9c128b729;hp=33ee997b37a6a8a53d807e033f868393708967fe;ds=sidebyside Do not use `dyn_cast` after `isa` (NFC) From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250883 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 8e8698ed932..4aaee046d23 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -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(Base)) { - assert(dyn_cast(Base)->isNullValue() && + assert(cast(Base)->isNullValue() && "Unexpected base in gather/scatter"); Scale = getI8Imm(1, DL); Base = CurDAG->getRegister(0, MVT::i32);