1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02: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:
Reid Spencer 2007-07-31 14:39:10 +00:00
parent 1324500d25
commit c103e8add9
2 changed files with 2 additions and 2 deletions

View File

@ -1245,7 +1245,6 @@ FuncAttr : NORETURN { $$ = ParamAttr::NoReturn; }
| NOUNWIND { $$ = ParamAttr::NoUnwind; }
| ZEROEXT { $$ = ParamAttr::ZExt; }
| SIGNEXT { $$ = ParamAttr::SExt; }
| INREG { $$ = ParamAttr::InReg; }
;
OptFuncAttrs : /* empty */ { $$ = ParamAttr::None; }

View File

@ -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;