mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 15:38:57 +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. llvm-svn: 40632
This commit is contained in:
parent
1324500d25
commit
c103e8add9
@ -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…
x
Reference in New Issue
Block a user