diff options
| author | Richard Trieu <rtrieu@google.com> | 2017-02-16 07:09:18 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2017-02-16 07:09:18 +0000 |
| commit | e55fb7f6f1a926a4631e4c67d81d85dfc6f03e51 (patch) | |
| tree | 46a47832bd26f91057103ed443245f0718d61280 /clang/lib/Sema/SemaDecl.cpp | |
| parent | 4eb07e481eef6e36869d47d0ae5ba8f91f1879e1 (diff) | |
| download | bcm5719-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.cpp | 5 |
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(); |

