diff --git a/interpreter/cling/lib/Interpreter/LookupHelper.cpp b/interpreter/cling/lib/Interpreter/LookupHelper.cpp index 0058c68c9ec76d96bc6a6818585f8d61b23a11a7..c550bc9129cb522273543bc9bdd97e498e962f8b 100644 --- a/interpreter/cling/lib/Interpreter/LookupHelper.cpp +++ b/interpreter/cling/lib/Interpreter/LookupHelper.cpp @@ -976,7 +976,6 @@ namespace cling { // Convert the passed decl into a nested name specifier, // a scope spec, and a decl context. // - NestedNameSpecifier* classNNS = 0; if (isa<NamespaceDecl>(scopeDecl)) { return foundDC; } @@ -987,7 +986,7 @@ namespace cling { } else { //const Type* T = Context.getRecordType(RD).getTypePtr(); const Type* T = Context.getTypeDeclType(RD).getTypePtr(); - classNNS = NestedNameSpecifier::Create(Context, 0, false, T); + NestedNameSpecifier* classNNS = NestedNameSpecifier::Create(Context, 0, false, T); // We pass a 'random' but valid source range. CXXScopeSpec SS; SS.MakeTrivial(Context, classNNS, scopeDecl->getSourceRange());