mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
After a discussion with Anton, it turns out that the InReg attribute is not
permitted on function results. So, revert the last patch to make it illegal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fee0a9c7ef
commit
e87f23377c
@ -1245,7 +1245,6 @@ FuncAttr : NORETURN { $$ = ParamAttr::NoReturn; }
|
||||
| NOUNWIND { $$ = ParamAttr::NoUnwind; }
|
||||
| ZEROEXT { $$ = ParamAttr::ZExt; }
|
||||
| SIGNEXT { $$ = ParamAttr::SExt; }
|
||||
| INREG { $$ = ParamAttr::InReg; }
|
||||
;
|
||||
|
||||
OptFuncAttrs : /* empty */ { $$ = ParamAttr::None; }
|
||||
|
@ -358,7 +358,8 @@ void Verifier::visitFunction(Function &F) {
|
||||
"Invalid struct-return function!", &F);
|
||||
|
||||
const uint16_t ReturnIncompatible =
|
||||
ParamAttr::ByVal | ParamAttr::Nest | ParamAttr::StructRet;
|
||||
ParamAttr::ByVal | ParamAttr::InReg |
|
||||
ParamAttr::Nest | ParamAttr::StructRet;
|
||||
|
||||
const uint16_t ParameterIncompatible =
|
||||
ParamAttr::NoReturn | ParamAttr::NoUnwind;
|
||||
|
Loading…
Reference in New Issue
Block a user