From d1863560cb0d0a7416b1802ea081ba439f02c0dc Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Wed, 13 Jul 2011 20:05:31 +0000 Subject: [PATCH] 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 --- lib/VMCore/Type.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 67fad983248..dc5053acc24 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -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 ETypes, ST = new StructType(Context); ST->setSubclassData(SCDB_IsAnonymous); // Anonymous struct. ST->setBody(ETypes, isPacked); - - Context.pImpl->AnonStructTypes[Key] = ST; - return ST; } -- 2.34.1