diff options
author | Raphael Isemann <teemperor@gmail.com> | 2018-01-22 15:27:25 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2018-01-22 15:27:25 +0000 |
commit | 025d620ce92f559aeaba326605ce1b70d09295d1 (patch) | |
tree | 9c3fbc497043eb9e71b92e1f1f4c3bbcc6613701 /clang/lib/Sema/MultiplexExternalSemaSource.cpp | |
parent | 57f9b363c19ae58d8e895856e20b3f23951624b4 (diff) | |
download | llvm-025d620ce92f559aeaba326605ce1b70d09295d1.zip llvm-025d620ce92f559aeaba326605ce1b70d09295d1.tar.gz llvm-025d620ce92f559aeaba326605ce1b70d09295d1.tar.bz2 |
[modules] Correctly overload getModule in the MultiplexExternalSemaSource
Summary:
The MultiplexExternalSemaSource doesn't correctly overload the `getModule` function,
causing the multiplexer to not forward this call as intended.
Reviewers: v.g.vassilev
Reviewed By: v.g.vassilev
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D39416
llvm-svn: 323122
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
-rw-r--r-- | clang/lib/Sema/MultiplexExternalSemaSource.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Sema/MultiplexExternalSemaSource.cpp b/clang/lib/Sema/MultiplexExternalSemaSource.cpp index 77ace0c..46238fb 100644 --- a/clang/lib/Sema/MultiplexExternalSemaSource.cpp +++ b/clang/lib/Sema/MultiplexExternalSemaSource.cpp @@ -164,6 +164,13 @@ void MultiplexExternalSemaSource::PrintStats() { Sources[i]->PrintStats(); } +Module *MultiplexExternalSemaSource::getModule(unsigned ID) { + for (size_t i = 0; i < Sources.size(); ++i) + if (auto M = Sources[i]->getModule(ID)) + return M; + return nullptr; +} + bool MultiplexExternalSemaSource::layoutRecordType(const RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, |