summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-19 01:25:41 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-19 01:25:41 +0000
commit542c2da10e9f7821de4ee7ca34981c80bbb6ff0e (patch)
tree70e6c4056c7f361ff19f93795f98d848e692e345 /llvm/lib
parent9dc0f61a5e8e52f64c014632dc1916451e7c9217 (diff)
downloadbcm5719-llvm-542c2da10e9f7821de4ee7ca34981c80bbb6ff0e.tar.gz
bcm5719-llvm-542c2da10e9f7821de4ee7ca34981c80bbb6ff0e.zip
Use dyn_cast instead of cast.
llvm-svn: 59577
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 43ecf65f7e4..21646840e4c 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/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<StructType>(RetTy);
+ const StructType *ST = dyn_cast<StructType>(RetTy);
unsigned NumRets = 1;
if (ST)
OpenPOWER on IntegriCloud