summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2017-02-16 07:09:18 +0000
committerRichard Trieu <rtrieu@google.com>2017-02-16 07:09:18 +0000
commite55fb7f6f1a926a4631e4c67d81d85dfc6f03e51 (patch)
tree46a47832bd26f91057103ed443245f0718d61280 /clang/lib/Sema/SemaDecl.cpp
parent4eb07e481eef6e36869d47d0ae5ba8f91f1879e1 (diff)
downloadbcm5719-llvm-e55fb7f6f1a926a4631e4c67d81d85dfc6f03e51.tar.gz
bcm5719-llvm-e55fb7f6f1a926a4631e4c67d81d85dfc6f03e51.zip
Revert r295284: Add better ODR checking for modules.
Fix modules build bot. llvm-svn: 295293
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 27203c0296d..3905348d3ca 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -13775,11 +13775,8 @@ void Sema::ActOnTagFinishDefinition(Scope *S, Decl *TagD,
RD->completeDefinition();
}
- if (auto *RD = dyn_cast<CXXRecordDecl>(Tag)) {
+ if (isa<CXXRecordDecl>(Tag))
FieldCollector->FinishClass();
- if (Context.getLangOpts().Modules)
- RD->computeODRHash();
- }
// Exit this scope of this tag's definition.
PopDeclContext();
OpenPOWER on IntegriCloud