aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/Type.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 8b3184e7c8..90f92efedd 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -155,11 +155,7 @@ ArrayType::ArrayType(const Type *ElType, int NumEl, const string &Name)
}
StructType::StructType(const vector<const Type*> &Types, const string &Name)
- : Type(Name, StructTyID),
- ETypes(Types),
- layoutCache(new StructSizeAndOffsetInfo)
-{
- ResetCachedInfo();
+ : Type(Name, StructTyID), ETypes(Types) {
}
PointerType::PointerType(const Type *E)