1
0
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:
Chris Lattner 2004-07-13 20:09:51 +00:00
parent 79b089abff
commit 1a1afa3566

View File

@ -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();
}