llvm.org GIT mirror llvm / 43276ee
IntegerType is a sized DerivedType too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33521 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
138138 /// iff all of the members of the type are sized as well. Since asking for
139139 /// their size is relatively uncommon, move this operation out of line.
140140 bool Type::isSizedDerivedType() const {
141 if (isa(this))
142 return true;
143
141144 if (const ArrayType *ATy = dyn_cast(this))
142145 return ATy->getElementType()->isSized();
143146