diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-07-31 06:33:37 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-07-31 06:33:37 +0000 |
commit | 6e800fe6cba47b6a4e112d678d06bfc811628caa (patch) | |
tree | 378a3c1456d5eace875cd6d298926ee049db0b61 /lib/VMCore | |
parent | 4ebcc8c2f8f91230066198cd9919766d9e8a4ef1 (diff) | |
download | external_llvm-6e800fe6cba47b6a4e112d678d06bfc811628caa.zip external_llvm-6e800fe6cba47b6a4e112d678d06bfc811628caa.tar.gz external_llvm-6e800fe6cba47b6a4e112d678d06bfc811628caa.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 6d4aa98..5c4e1b3 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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; |