mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
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
This commit is contained in:
parent
1505cdbcea
commit
9f50eeea8c
@ -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() ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user