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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-07-31 06:33:37 +00:00
parent 4ebcc8c2f8
commit 6e800fe6cb

View File

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