aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/RecordLayout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/RecordLayout.h b/include/clang/AST/RecordLayout.h
index 57adc8a555..e764cf8a61 100644
--- a/include/clang/AST/RecordLayout.h
+++ b/include/clang/AST/RecordLayout.h
@@ -36,7 +36,7 @@ class ASTRecordLayout {
friend class ASTContext;
ASTRecordLayout(uint64_t S = 0, unsigned A = 8)
- : Size(S), Alignment(A), FieldCount(0), NextOffset(0) {}
+ : Size(S), Alignment(A), FieldCount(0), NextOffset(S) {}
~ASTRecordLayout() {
delete [] FieldOffsets;
}