[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Reid Spencer reid at x10sys.com
Thu Jan 25 23:51:52 PST 2007



Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.165 -> 1.166
---
Log message:

IntegerType is a sized DerivedType too.


---
Diffs of the changes:  (+3 -0)

 Type.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.165 llvm/lib/VMCore/Type.cpp:1.166
--- llvm/lib/VMCore/Type.cpp:1.165	Fri Jan 19 15:25:12 2007
+++ llvm/lib/VMCore/Type.cpp	Fri Jan 26 01:51:36 2007
@@ -139,6 +139,9 @@
 /// iff all of the members of the type are sized as well.  Since asking for
 /// their size is relatively uncommon, move this operation out of line.
 bool Type::isSizedDerivedType() const {
+  if (isa<IntegerType>(this))
+    return true;
+
   if (const ArrayType *ATy = dyn_cast<ArrayType>(this))
     return ATy->getElementType()->isSized();
 






More information about the llvm-commits mailing list