From 4051bf47ec8e38e04b96f3ce0fc9cb82fef80241 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 27 Aug 2008 14:44:57 +0000 Subject: Update wording, as aggregates are now first-class. llvm-svn: 55413 --- llvm/lib/VMCore/Verifier.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/VMCore') diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 26d55e9ffcd..299a0f4043c 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -505,10 +505,9 @@ void Verifier::visitFunction(Function &F) { Assert2(I->getType() == FT->getParamType(i), "Argument value does not match function argument type!", I, FT->getParamType(i)); - // Make sure no aggregates are passed by value. Assert1(I->getType()->isFirstClassType(), - "Functions cannot take aggregates as arguments by value!", I); - } + "Function arguments must have first-class types!", I); + } if (F.isDeclaration()) { Assert1(F.hasExternalLinkage() || F.hasDLLImportLinkage() || -- cgit v1.2.3