Add parent to every type
Parent is needed for lookups:
scope = isScope() ? this : parent()
for ref : getReferences() {
AST->lookup...(ref, scope)
}
Bug: 31827278
Test: mma
Change-Id: I1bde29de43d224634d80949d719adc8de9cc8896
diff --git a/VectorType.cpp b/VectorType.cpp
index 071e406..e279daf 100644
--- a/VectorType.cpp
+++ b/VectorType.cpp
@@ -25,8 +25,7 @@
namespace android {
-VectorType::VectorType() {
-}
+VectorType::VectorType(Scope* parent) : TemplatedType(parent) {}
std::string VectorType::typeName() const {
return "vector of " + mElementType->typeName();