mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
Use dyn_cast instead of cast.
llvm-svn: 59577
This commit is contained in:
parent
5a374e2969
commit
b8a7d944f1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user