[CodeComplete] Delete unused variable in rC342449
authorFangrui Song <maskray@google.com>
Sat, 24 Nov 2018 00:41:13 +0000 (00:41 +0000)
committerFangrui Song <maskray@google.com>
Sat, 24 Nov 2018 00:41:13 +0000 (00:41 +0000)
llvm-svn: 347508

clang/lib/Sema/SemaCodeComplete.cpp

index 7afcf70..aeb7aee 100644 (file)
@@ -8214,7 +8214,6 @@ void Sema::CodeCompleteIncludedFile(llvm::StringRef Dir, bool Angled) {
   // Helper: adds results relative to IncludeDir, if possible.
   auto AddFilesFromDirLookup = [&](const DirectoryLookup &IncludeDir,
                                    bool IsSystem) {
-    llvm::SmallString<128> Dir;
     switch (IncludeDir.getLookupType()) {
     case DirectoryLookup::LT_HeaderMap:
       // header maps are not (currently) enumerable.