The InReg parameter attribute is valid on function results. The llvm-gcc-4.0
authorReid Spencer <rspencer@reidspencer.com>
Tue, 31 Jul 2007 06:33:37 +0000 (06:33 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 31 Jul 2007 06:33:37 +0000 (06:33 +0000)
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

lib/VMCore/Verifier.cpp

index 6d4aa986f712c98328105fc0fb4459182c3e91ae..5c4e1b36843622187e45817f3d26a67741bd4b0c 100644 (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;