diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-13 20:05:31 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-13 20:05:31 +0000 |
commit | d1863560cb0d0a7416b1802ea081ba439f02c0dc (patch) | |
tree | b87343d4d79a853788e018d189109d3c41bcd619 /lib/VMCore/Type.cpp | |
parent | 9bc402c8d4b547ab644d39a37033c1e4ef67c3cd (diff) | |
download | llvm-d1863560cb0d0a7416b1802ea081ba439f02c0dc.tar.gz llvm-d1863560cb0d0a7416b1802ea081ba439f02c0dc.tar.bz2 llvm-d1863560cb0d0a7416b1802ea081ba439f02c0dc.tar.xz |
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
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 67fad98324..dc5053acc2 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<Type*> ETypes, ST = new StructType(Context); ST->setSubclassData(SCDB_IsAnonymous); // Anonymous struct. ST->setBody(ETypes, isPacked); - - Context.pImpl->AnonStructTypes[Key] = ST; - return ST; } |