diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-11-19 01:25:41 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-11-19 01:25:41 +0000 |
| commit | 542c2da10e9f7821de4ee7ca34981c80bbb6ff0e (patch) | |
| tree | 70e6c4056c7f361ff19f93795f98d848e692e345 /llvm/lib | |
| parent | 9dc0f61a5e8e52f64c014632dc1916451e7c9217 (diff) | |
| download | bcm5719-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.cpp | 2 |
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) |

