[llvm-commits] [llvm] r135070 - /llvm/trunk/lib/VMCore/Type.cpp

Jay Foad jay.foad at gmail.com
Wed Jul 13 13:05:31 PDT 2011


Author: foad
Date: Wed Jul 13 15:05:31 2011
New Revision: 135070

URL: http://llvm.org/viewvc/llvm-project?rev=135070&view=rev
Log:
Revert r135042. As Chris pointed out, it had no effect, and was based on
a complete misunderstanding of the code.

Modified:
    llvm/trunk/lib/VMCore/Type.cpp

Modified: llvm/trunk/lib/VMCore/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Type.cpp?rev=135070&r1=135069&r2=135070&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Type.cpp (original)
+++ llvm/trunk/lib/VMCore/Type.cpp Wed Jul 13 15:05:31 2011
@@ -343,8 +343,6 @@
     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 @@
   ST = new StructType(Context);
   ST->setSubclassData(SCDB_IsAnonymous);  // Anonymous struct.
   ST->setBody(ETypes, isPacked);
-
-  Context.pImpl->AnonStructTypes[Key] = ST;
-
   return ST;
 }
 





More information about the llvm-commits mailing list