Revert r135042. As Chris pointed out, it had no effect, and was based on

a complete misunderstanding of the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad 2011-07-13 20:05:31 +00:00
parent 9bc402c8d4
commit d1863560cb

View File

@ -343,8 +343,6 @@ FunctionType *FunctionType::get(const Type *ReturnType,
FT = (FunctionType*) operator new(sizeof(FunctionType) +
sizeof(Type*)*(Params.size()+1));
new (FT) FunctionType(ReturnType, Params, isVarArg);
ReturnType->getContext().pImpl->FunctionTypes[Key] = FT;
}
return FT;
@ -395,9 +393,6 @@ StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes,
ST = new StructType(Context);
ST->setSubclassData(SCDB_IsAnonymous); // Anonymous struct.
ST->setBody(ETypes, isPacked);
Context.pImpl->AnonStructTypes[Key] = ST;
return ST;
}