summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Sema/SemaLookup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 951fbfac7ac..0ecd81400b0 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -3228,7 +3228,8 @@ class NamespaceSpecifierSet {
public:
explicit NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext)
- : Context(Context), CurContextChain(BuildContextChain(CurContext)) {}
+ : Context(Context), CurContextChain(BuildContextChain(CurContext)),
+ isSorted(true) {}
/// \brief Add the namespace to the set, computing the corresponding
/// NestedNameSpecifier and its distance in the process.
OpenPOWER on IntegriCloud