Adjust to the changed StructType interface. In particular, getElementTypes() is...
[oota-llvm.git] / lib / AsmParser / llvmAsmParser.y
index 0981eabd82ed7d5c68b146dfd9de54b8762baba5..ad431d03887d7357fdc1d45736bd077a683dae8b 100644 (file)
@@ -1085,9 +1085,9 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr
 
     // Check to ensure that constants are compatible with the type initializer!
     for (unsigned i = 0, e = $3->size(); i != e; ++i)
-      if ((*$3)[i]->getType() != STy->getElementTypes()[i])
+      if ((*$3)[i]->getType() != STy->getElementType(i))
         ThrowException("Expected type '" +
-                       STy->getElementTypes()[i]->getDescription() +
+                       STy->getElementType(i)->getDescription() +
                        "' for element #" + utostr(i) +
                        " of structure initializer!");