aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Sema/SemaLookup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index 951fbfac7a..0ecd81400b 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/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.