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 | ac1b4b82ffcb45970095144f26a02c60074c4a79 (patch) | |
tree | f6892587cb99f178907dca7858008cbdf4bb6955 /lib | |
parent | 4a679ab0a8c87fccc9ca3b9b70869bfd53423477 (diff) | |
download | external_llvm-ac1b4b82ffcb45970095144f26a02c60074c4a79.zip external_llvm-ac1b4b82ffcb45970095144f26a02c60074c4a79.tar.gz external_llvm-ac1b4b82ffcb45970095144f26a02c60074c4a79.tar.bz2 |
Use dyn_cast instead of cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 43ecf65..2164684 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<StructType>(RetTy); + const StructType *ST = dyn_cast<StructType>(RetTy); unsigned NumRets = 1; if (ST) |