mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Use dyn_cast instead of cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bccdcca7d1
commit
9173383e4e
@ -1396,7 +1396,7 @@ bool Verifier::PerformTypeCheck(Intrinsic::ID ID, Function *F, const Type *Ty,
|
||||
if (VT < 0) {
|
||||
int Match = ~VT;
|
||||
const Type *RetTy = FTy->getReturnType();
|
||||
const StructType *ST = cast<StructType>(RetTy);
|
||||
const StructType *ST = dyn_cast<StructType>(RetTy);
|
||||
unsigned NumRets = 1;
|
||||
|
||||
if (ST)
|
||||
|
Loading…
Reference in New Issue
Block a user