]> granicus.if.org Git - clang/commitdiff
Fix OCUVector case in struct layout code.
authorChristopher Lamb <christopher.lamb@gmail.com>
Sat, 29 Dec 2007 05:10:55 +0000 (05:10 +0000)
committerChristopher Lamb <christopher.lamb@gmail.com>
Sat, 29 Dec 2007 05:10:55 +0000 (05:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45396 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index 31d9255a4bae54b2bc91e9afbe3b89e10978571b..3aead2f93113ffc4cd3890864f31804cdb2d167e 100644 (file)
@@ -200,7 +200,8 @@ ASTContext::getTypeInfo(QualType T, SourceLocation L) {
     Size = EltInfo.first*CAT->getSize().getZExtValue();
     Align = EltInfo.second;
     break;
-  }    
+  }
+  case Type::OCUVector:
   case Type::Vector: {
     std::pair<uint64_t, unsigned> EltInfo = 
       getTypeInfo(cast<VectorType>(T)->getElementType(), L);