mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Fix an assumption that there is a single return value when verifying
overloaded types for intrinsic parameters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1544,9 +1544,9 @@ bool Verifier::PerformTypeCheck(Intrinsic::ID ID, Function *F, const Type *Ty,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Ty != FTy->getParamType(Match - 1)) {
|
if (Ty != FTy->getParamType(Match - NumRets)) {
|
||||||
CheckFailed(IntrinsicParam(ArgNo, NumRets) + " does not "
|
CheckFailed(IntrinsicParam(ArgNo, NumRets) + " does not "
|
||||||
"match parameter %" + utostr(Match - 1) + ".", F);
|
"match parameter %" + utostr(Match - NumRets) + ".", F);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user