Revert r135042. As Chris pointed out, it had no effect, and was based on
a complete misunderstanding of the code. llvm-svn: 135070
This commit is contained in:
parent
10d6ce494b
commit
5e4416e8c9
|
|
@ -343,8 +343,6 @@ FunctionType *FunctionType::get(const Type *ReturnType,
|
||||||
FT = (FunctionType*) operator new(sizeof(FunctionType) +
|
FT = (FunctionType*) operator new(sizeof(FunctionType) +
|
||||||
sizeof(Type*)*(Params.size()+1));
|
sizeof(Type*)*(Params.size()+1));
|
||||||
new (FT) FunctionType(ReturnType, Params, isVarArg);
|
new (FT) FunctionType(ReturnType, Params, isVarArg);
|
||||||
|
|
||||||
ReturnType->getContext().pImpl->FunctionTypes[Key] = FT;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FT;
|
return FT;
|
||||||
|
|
@ -395,9 +393,6 @@ StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes,
|
||||||
ST = new StructType(Context);
|
ST = new StructType(Context);
|
||||||
ST->setSubclassData(SCDB_IsAnonymous); // Anonymous struct.
|
ST->setSubclassData(SCDB_IsAnonymous); // Anonymous struct.
|
||||||
ST->setBody(ETypes, isPacked);
|
ST->setBody(ETypes, isPacked);
|
||||||
|
|
||||||
Context.pImpl->AnonStructTypes[Key] = ST;
|
|
||||||
|
|
||||||
return ST;
|
return ST;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue