Relax this condition.
[oota-llvm.git] / lib / Bitcode / Writer / ValueEnumerator.cpp
index db766b1bf002fc74916b6417ecc4202caeb71935..9ae9905b9f1db8d99b5c1d0e37893e4e9c7919ac 100644 (file)
@@ -326,7 +326,7 @@ void ValueEnumerator::EnumerateType(Type *Ty) {
   // don't recursively visit it.  This is safe because we allow forward
   // references of these in the bitcode reader.
   if (StructType *STy = dyn_cast<StructType>(Ty))
-    if (!STy->isAnonymous())
+    if (!STy->isLiteral())
       *TypeID = ~0U;
   
   // Enumerate all of the subtypes before we enumerate this type.  This ensures