Union in vec in HIDL.

Not sure why this was disallowed in the first place.

Bug: 31973802
Test: hidl_test
Change-Id: I3170560fb9e72277874f7c5861dc0ce4dcf9e40a
diff --git a/VectorType.cpp b/VectorType.cpp
index fa9761e..03604dc 100644
--- a/VectorType.cpp
+++ b/VectorType.cpp
@@ -44,8 +44,7 @@
     if (elementType->isBitField()) {
         return true;
     }
-    if (elementType->isCompoundType() &&
-        static_cast<const CompoundType*>(elementType)->style() == CompoundType::STYLE_STRUCT) {
+    if (elementType->isCompoundType()) {
         return true;
     }
     if (elementType->isInterface()) {