forked from OSchip/llvm-project
The InReg parameter attribute is valid on function results. The llvm-gcc-4.0
front end converts regparm attribute on the gcc function into InReg attribute on the llvm function. This fixes test/CFrontend/2002-07-30-SubrefSetAssertion.c llvm-svn: 40618
This commit is contained in:
parent
242a87734a
commit
160e4faedc
|
@ -358,8 +358,7 @@ void Verifier::visitFunction(Function &F) {
|
|||
"Invalid struct-return function!", &F);
|
||||
|
||||
const uint16_t ReturnIncompatible =
|
||||
ParamAttr::ByVal | ParamAttr::InReg |
|
||||
ParamAttr::Nest | ParamAttr::StructRet;
|
||||
ParamAttr::ByVal | ParamAttr::Nest | ParamAttr::StructRet;
|
||||
|
||||
const uint16_t ParameterIncompatible =
|
||||
ParamAttr::NoReturn | ParamAttr::NoUnwind;
|
||||
|
|
Loading…
Reference in New Issue