Fix another infinite loop in Reassociate caused by Constant::isZero().
[oota-llvm.git] / lib / IR / Function.cpp
index 3a1c7a4ca36162c89a5379a82e14d77eca8b4d69..ccdb5acc76eaa4e754305036c48d02d25f5bbcb2 100644 (file)
@@ -492,7 +492,10 @@ static std::string getMangledTypeStr(Type* Ty) {
       Result += "vararg";
     // Ensure nested function types are distinguishable.
     Result += "f"; 
-  } else if (Ty)
+  } else if (isa<VectorType>(Ty))
+    Result += "v" + utostr(Ty->getVectorNumElements()) +
+      getMangledTypeStr(Ty->getVectorElementType());
+  else if (Ty)
     Result += EVT::getEVT(Ty).getEVTString();
   return Result;
 }