summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-27 14:44:57 +0000
committerDan Gohman <gohman@apple.com>2008-08-27 14:44:57 +0000
commit4051bf47ec8e38e04b96f3ce0fc9cb82fef80241 (patch)
tree63360b6bb607b767acb3971f41fbb4b93f18b4ed /llvm
parentf71b5f39bb7712e5cc4da72c7d2aed54c99df683 (diff)
downloadbcm5719-llvm-4051bf47ec8e38e04b96f3ce0fc9cb82fef80241.tar.gz
bcm5719-llvm-4051bf47ec8e38e04b96f3ce0fc9cb82fef80241.zip
Update wording, as aggregates are now first-class.
llvm-svn: 55413
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp5
1 files changed, 2 insertions, 3 deletions
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() ||
OpenPOWER on IntegriCloud