[VE][NFC] Change cast to dyn_cast
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Thu, 5 Nov 2020 01:32:34 +0000 (10:32 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Tue, 10 Nov 2020 12:49:16 +0000 (21:49 +0900)
commit543b30db06bf992c4b33ccba4e53e9905b101b7c
tree57d0128e3ed0c1f68ede2b75db2c439a767894a9
parentfe9403df0686c8df3e78949a9bde420563e1e215
[VE][NFC] Change cast to dyn_cast

We used cast where we should use dyn_cast.  So, change it this time.
Old code cause problems if I implement brind instruction and compile
openmp using new compiler.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D91151
llvm/lib/Target/VE/VEISelDAGToDAG.cpp