summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-31 06:33:37 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-31 06:33:37 +0000
commit160e4faedc6d5811a51839a0ce72c2377a61460d (patch)
treee2ed7471de2837244730a47f0b971cf130614cea /llvm/lib
parent242a87734ada97b0b25191c229d29e632edd20f8 (diff)
downloadbcm5719-llvm-160e4faedc6d5811a51839a0ce72c2377a61460d.tar.gz
bcm5719-llvm-160e4faedc6d5811a51839a0ce72c2377a61460d.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 6d4aa986f71..5c4e1b36843 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud