mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Catch aggregates passed by value sooner rather than later.
llvm-svn: 14800
This commit is contained in:
parent
79b089abff
commit
1a1afa3566
@ -364,6 +364,9 @@ FunctionType::FunctionType(const Type *Result,
|
||||
ContainedTys.push_back(PATypeHandle(Result, this));
|
||||
|
||||
for (unsigned i = 0; i != Params.size(); ++i) {
|
||||
assert((Params[i]->isFirstClassType() || isa<OpaqueType>(Params[i])) &&
|
||||
"Function arguments must be value types!");
|
||||
|
||||
ContainedTys.push_back(PATypeHandle(Params[i], this));
|
||||
isAbstract |= Params[i]->isAbstract();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user