mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
It seems logical that InReg should be incompatible
with StructReturn and ByVal, so make it so. llvm-svn: 40554
This commit is contained in:
parent
b7b28dc6d0
commit
88c9f25dbc
@ -365,7 +365,8 @@ void Verifier::visitFunction(Function &F) {
|
||||
ParamAttr::NoReturn | ParamAttr::NoUnwind;
|
||||
|
||||
const uint16_t MutuallyIncompatible =
|
||||
ParamAttr::ByVal | ParamAttr::Nest | ParamAttr::StructRet;
|
||||
ParamAttr::ByVal | ParamAttr::InReg |
|
||||
ParamAttr::Nest | ParamAttr::StructRet;
|
||||
|
||||
const uint16_t IntegerTypeOnly =
|
||||
ParamAttr::SExt | ParamAttr::ZExt;
|
||||
@ -417,8 +418,6 @@ void Verifier::visitFunction(Function &F) {
|
||||
if (Attrs->paramHasAttr(Idx, ParamAttr::Nest)) {
|
||||
Assert1(!SawNest, "More than one parameter has attribute nest!", &F);
|
||||
SawNest = true;
|
||||
Assert1(!Attrs->paramHasAttr(Idx, ParamAttr::InReg),
|
||||
"Attributes nest and inreg are incompatible!", &F);
|
||||
}
|
||||
|
||||
if (Attrs->paramHasAttr(Idx, ParamAttr::StructRet)) {
|
||||
|
Loading…
Reference in New Issue
Block a user