aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/MultiplexExternalSemaSource.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-03-25 21:49:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-03-25 21:49:43 +0000
commitd6a04d79c7cc25419ffdaba9424a8ce1336813fb (patch)
treefdb8d62835bf4a89049910a607744c9ad88fdec4 /clang/lib/Sema/MultiplexExternalSemaSource.cpp
parent020e890a19c90b4efd426ca23a092adcc37c3741 (diff)
downloadllvm-d6a04d79c7cc25419ffdaba9424a8ce1336813fb.zip
llvm-d6a04d79c7cc25419ffdaba9424a8ce1336813fb.tar.gz
llvm-d6a04d79c7cc25419ffdaba9424a8ce1336813fb.tar.bz2
Store list of undefined-but-used objects in a deterministic order to fix
non-deterministic diagnostics (and non-deterministic PCH files). Check these when building a module rather than serializing it; it's not reasonable for a module's use to be satisfied by a definition in the user of the module. llvm-svn: 264466
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
-rw-r--r--clang/lib/Sema/MultiplexExternalSemaSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/MultiplexExternalSemaSource.cpp b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
index 0f93421..89eec24 100644
--- a/clang/lib/Sema/MultiplexExternalSemaSource.cpp
+++ b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
@@ -204,7 +204,7 @@ void MultiplexExternalSemaSource::ReadKnownNamespaces(
}
void MultiplexExternalSemaSource::ReadUndefinedButUsed(
- llvm::DenseMap<NamedDecl*, SourceLocation> &Undefined){
+ llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) {
for(size_t i = 0; i < Sources.size(); ++i)
Sources[i]->ReadUndefinedButUsed(Undefined);
}