Remove a bit of duplicated code.
[oota-llvm.git] / lib / Linker / LinkModules.cpp
index 504073887c33ca378ec7ea24517218dcd2e644fe..44b4bce313115e72773a7474ddedfbb1938e0671 100644 (file)
@@ -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)) {