diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-27 14:44:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-27 14:44:57 +0000 |
commit | 9f50eeea8c561dd9410846ef09315acc75b55b9b (patch) | |
tree | 8f381bbb2fab2ad623347fa26b514e028644f9d1 /lib/VMCore | |
parent | 1505cdbcea1e59b6b72fcacd9103e23adbce68f1 (diff) | |
download | llvm-9f50eeea8c561dd9410846ef09315acc75b55b9b.tar.gz llvm-9f50eeea8c561dd9410846ef09315acc75b55b9b.tar.bz2 llvm-9f50eeea8c561dd9410846ef09315acc75b55b9b.tar.xz |
Update wording, as aggregates are now first-class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 26d55e9ffc..299a0f4043 100644 --- a/lib/VMCore/Verifier.cpp +++ b/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() || |