mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
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:
parent
4ebcc8c2f8
commit
6e800fe6cb
@ -358,8 +358,7 @@ void Verifier::visitFunction(Function &F) {
|
|||||||
"Invalid struct-return function!", &F);
|
"Invalid struct-return function!", &F);
|
||||||
|
|
||||||
const uint16_t ReturnIncompatible =
|
const uint16_t ReturnIncompatible =
|
||||||
ParamAttr::ByVal | ParamAttr::InReg |
|
ParamAttr::ByVal | ParamAttr::Nest | ParamAttr::StructRet;
|
||||||
ParamAttr::Nest | ParamAttr::StructRet;
|
|
||||||
|
|
||||||
const uint16_t ParameterIncompatible =
|
const uint16_t ParameterIncompatible =
|
||||||
ParamAttr::NoReturn | ParamAttr::NoUnwind;
|
ParamAttr::NoReturn | ParamAttr::NoUnwind;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user