summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-05-22 23:19:02 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-05-22 23:19:02 +0000
commit64c0630585ac46bc3dbeb69ada50b106df8419f1 (patch)
treeccd956ca59d7242e6be2b93844dfae5d3188c431 /clang/lib/AST/Decl.cpp
parent276d7a1434009086bb8491a58988e7818e27ecb3 (diff)
downloadbcm5719-llvm-64c0630585ac46bc3dbeb69ada50b106df8419f1.tar.gz
bcm5719-llvm-64c0630585ac46bc3dbeb69ada50b106df8419f1.zip
Avoid allocating extra memory to handle the lazy definition data pointer for
CXXRecordDecls when modules is enabled. llvm-svn: 209482
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index fc15bdee010..a783364c677 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -3240,7 +3240,7 @@ void TagDecl::startDefinition() {
struct CXXRecordDecl::DefinitionData *Data =
new (getASTContext()) struct CXXRecordDecl::DefinitionData(D);
for (auto I : redecls())
- cast<CXXRecordDecl>(I)->DefinitionData.setNotUpdated(Data);
+ cast<CXXRecordDecl>(I)->DefinitionData = Data;
}
}
OpenPOWER on IntegriCloud