Use dyn_cast instead of cast.

llvm-svn: 59577
This commit is contained in:
Bill Wendling 2008-11-19 01:25:41 +00:00
parent 5a374e2969
commit b8a7d944f1

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)