Prevent infinite growth of SmallPtrSet instances.
[oota-llvm.git] / include / llvm / Type.h
index b493879e95725d2ead7cd12d04f6efa177e24ffa..0939d67265b096222fb004d10f9ada199ba79ee8 100644 (file)
@@ -313,7 +313,8 @@ public:
   ///
   bool isSized() const {
     // If it's a primitive, it is always sized.
-    if (ID == IntegerTyID || isFloatingPointTy() || ID == PointerTyID)
+    if (ID == IntegerTyID || isFloatingPointTy() || ID == PointerTyID ||
+        ID == X86_MMXTyID)
       return true;
     // If it is not something that can have a size (e.g. a function or label),
     // it doesn't have a size.