]> granicus.if.org Git - clang/commitdiff
Fix a call to Sema::LookupDecl that had incorrect parameters.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 14 Oct 2008 17:28:09 +0000 (17:28 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 14 Oct 2008 17:28:09 +0000 (17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57511 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 2fae627ea6ac9dc9b23917584901148661c3de46..d5e1d5ed7becc291a96151ac956335371d2982a7 100644 (file)
@@ -510,7 +510,7 @@ Sema::DeclTy *Sema::ActOnStartNamespaceDef(Scope *NamespcScope,
     // in that declarative region, it is treated as an original-namespace-name.
 
     Decl *PrevDecl =
-        LookupDecl(II, Decl::IDNS_Tag | Decl::IDNS_Ordinary, DeclRegionScope,
+        LookupDecl(II, Decl::IDNS_Tag | Decl::IDNS_Ordinary, DeclRegionScope, 0,
                    /*enableLazyBuiltinCreation=*/false);
 
     if (PrevDecl && isDeclInScope(PrevDecl, CurContext, DeclRegionScope)) {