From 160e4faedc6d5811a51839a0ce72c2377a61460d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 31 Jul 2007 06:33:37 +0000 Subject: [PATCH] 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 --- llvm/lib/VMCore/Verifier.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 6d4aa986f712..5c4e1b368436 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;