mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
The bytecode reader wants to be able to read types that are not quite resolved
yet, then resolve them in it's own sweet time. We must support this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -402,7 +402,8 @@ FunctionType::FunctionType(const Type *Result,
|
|||||||
const std::vector<const Type*> &Params,
|
const std::vector<const Type*> &Params,
|
||||||
bool IsVarArgs) : DerivedType(FunctionTyID),
|
bool IsVarArgs) : DerivedType(FunctionTyID),
|
||||||
isVarArgs(IsVarArgs) {
|
isVarArgs(IsVarArgs) {
|
||||||
assert((Result->isFirstClassType() || Result == Type::VoidTy) &&
|
assert((Result->isFirstClassType() || Result == Type::VoidTy ||
|
||||||
|
isa<OpaqueType>(Result)) &&
|
||||||
"LLVM functions cannot return aggregates");
|
"LLVM functions cannot return aggregates");
|
||||||
bool isAbstract = Result->isAbstract();
|
bool isAbstract = Result->isAbstract();
|
||||||
ContainedTys.reserve(Params.size()+1);
|
ContainedTys.reserve(Params.size()+1);
|
||||||
|
Reference in New Issue
Block a user