summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-06-06 02:00:35 +0000
committerDevang Patel <dpatel@apple.com>2008-06-06 02:00:35 +0000
commite1f10511ba77d6b6d98aa680505ffb844bd42b37 (patch)
treead2e767b3670cd865184f46fedcc0d91486dedc1 /clang/lib/AST/ASTContext.cpp
parent1216b05d3d898c40fa3e674dc49ad22eb59b3db3 (diff)
downloadbcm5719-llvm-e1f10511ba77d6b6d98aa680505ffb844bd42b37.tar.gz
bcm5719-llvm-e1f10511ba77d6b6d98aa680505ffb844bd42b37.zip
Undo previous check-in.
llvm-svn: 52034
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 8733a6b9894..4a1fb39bb60 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -405,15 +405,7 @@ ASTContext::getASTObjCInterfaceLayout(const ObjCInterfaceDecl *D) {
// Allocate and assign into ASTRecordLayouts here. The "Entry" reference can
// be invalidated (dangle) if the ASTRecordLayouts hashtable is inserted into.
- unsigned Alignment = 8;
- uint64_t Size = 0;
- if (ObjCInterfaceDecl *SD = D->getSuperClass()) {
- const ASTRecordLayout &SL = getASTObjCInterfaceLayout(SD);
- Alignment = SL.getAlignment();
- Size = SL.getSize();
- }
- ASTRecordLayout *NewEntry = new ASTRecordLayout(Size, Alignment);
-
+ ASTRecordLayout *NewEntry = new ASTRecordLayout();
Entry = NewEntry;
NewEntry->InitializeLayout(D->ivar_size());
OpenPOWER on IntegriCloud