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 | 9173383e4ee6d32608a5f8395f4f1cda87a5c80e (patch) | |
tree | f6892587cb99f178907dca7858008cbdf4bb6955 /lib/VMCore/Verifier.cpp | |
parent | bccdcca7d19f65ada4477c2f3eedc0fd5f690adf (diff) | |
download | external_llvm-9173383e4ee6d32608a5f8395f4f1cda87a5c80e.zip external_llvm-9173383e4ee6d32608a5f8395f4f1cda87a5c80e.tar.gz external_llvm-9173383e4ee6d32608a5f8395f4f1cda87a5c80e.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/VMCore/Verifier.cpp')
-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) |