[llvm-commits] [llvm] r59577 - /llvm/trunk/lib/VMCore/Verifier.cpp
Bill Wendling
isanbard at gmail.com
Tue Nov 18 17:25:41 PST 2008
Author: void
Date: Tue Nov 18 19:25:41 2008
New Revision: 59577
URL: http://llvm.org/viewvc/llvm-project?rev=59577&view=rev
Log:
Use dyn_cast instead of cast.
Modified:
llvm/trunk/lib/VMCore/Verifier.cpp
Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=59577&r1=59576&r2=59577&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Tue Nov 18 19:25:41 2008
@@ -1396,7 +1396,7 @@
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)
More information about the llvm-commits
mailing list