From 9173383e4ee6d32608a5f8395f4f1cda87a5c80e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 19 Nov 2008 01:25:41 +0000 Subject: [PATCH] Use dyn_cast instead of cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59577 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 43ecf65f7e4..21646840e4c 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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(RetTy); + const StructType *ST = dyn_cast(RetTy); unsigned NumRets = 1; if (ST)