diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 07:17:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 07:17:35 +0000 |
commit | 52e3fbaee806bba55e2cbcf1e09f11ad78019611 (patch) | |
tree | 7c16d56dc656da5720f09aa7d4eb3bb74796dbd8 /clang/lib/Serialization/ASTReaderDecl.cpp | |
parent | 9140dd2fe773432aed5f8fb1ab166951b95e2900 (diff) | |
download | bcm5719-llvm-52e3fbaee806bba55e2cbcf1e09f11ad78019611.tar.gz bcm5719-llvm-52e3fbaee806bba55e2cbcf1e09f11ad78019611.zip |
Revert C++11ification in r203534 and r203536. Apparently our toolchains aren't
ready for this yet.
llvm-svn: 203548
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReaderDecl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp index fef5f7b8890..11148ebc5ef 100644 --- a/clang/lib/Serialization/ASTReaderDecl.cpp +++ b/clang/lib/Serialization/ASTReaderDecl.cpp @@ -2609,9 +2609,11 @@ Decl *ASTReader::ReadDeclRecord(DeclID ID) { // There are updates. This means the context has external visible // storage, even if the original stored version didn't. LookupDC->setHasExternalVisibleStorage(true); - for (const auto &Update : I->second) - Update.second->DeclContextInfos[DC].NameLookupTableData.reset( - Update.first); + for (const auto &Update : I->second) { + DeclContextInfo &Info = Update.second->DeclContextInfos[DC]; + delete Info.NameLookupTableData; + Info.NameLookupTableData = Update.first; + } PendingVisibleUpdates.erase(I); } } |