X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=lib%2FLinker%2FLinkModules.cpp;h=44b4bce313115e72773a7474ddedfbb1938e0671;hb=b959a30a14737fd7dc31020af14f72cfa6e18b94;hp=504073887c33ca378ec7ea24517218dcd2e644fe;hpb=d8022cd7d4b157f2deebebaf336f60b0f21f15e4;p=oota-llvm.git diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 504073887c3..44b4bce3131 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -96,14 +96,6 @@ private: } void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { - Type *&Entry = MappedTypes[SrcTy]; - if (Entry) return; - - if (DstTy == SrcTy) { - Entry = DstTy; - return; - } - // Check to see if these types are recursively isomorphic and establish a // mapping between them if so. if (areTypesIsomorphic(DstTy, SrcTy)) {