diff options
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 1eec2318e2b..54eef40043b 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -12793,11 +12793,9 @@ MSPropertyDecl *Sema::HandleMSProperty(Scope *S, RecordDecl *Record, PrevDecl = 0; SourceLocation TSSL = D.getLocStart(); - MSPropertyDecl *NewPD; const AttributeList::PropertyData &Data = MSPropertyAttr->getPropertyData(); - NewPD = new (Context) MSPropertyDecl(Record, Loc, - II, T, TInfo, TSSL, - Data.GetterId, Data.SetterId); + MSPropertyDecl *NewPD = MSPropertyDecl::Create( + Context, Record, Loc, II, T, TInfo, TSSL, Data.GetterId, Data.SetterId); ProcessDeclAttributes(TUScope, NewPD, D); NewPD->setAccess(AS); |