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:
Bill Wendling 2008-11-19 01:25:41 +00:00
parent bccdcca7d1
commit 9173383e4e

View File

@ -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)