r333752 - Fix unused variable warning from r333718

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 1 07:16:18 PDT 2018


Author: erichkeane
Date: Fri Jun  1 07:16:18 2018
New Revision: 333752

URL: http://llvm.org/viewvc/llvm-project?rev=333752&view=rev
Log:
Fix unused variable warning from r333718 

Modified:
    cfe/trunk/lib/Lex/ModuleMap.cpp

Modified: cfe/trunk/lib/Lex/ModuleMap.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/ModuleMap.cpp?rev=333752&r1=333751&r2=333752&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/ModuleMap.cpp (original)
+++ cfe/trunk/lib/Lex/ModuleMap.cpp Fri Jun  1 07:16:18 2018
@@ -234,7 +234,7 @@ const FileEntry *ModuleMap::findHeader(
     // framework style path.
     FullPathName.assign(Directory->getName());
     RelativePathName.clear();
-    if (auto *FrameworkHdr = GetFrameworkFile()) {
+    if (GetFrameworkFile()) {
       Diags.Report(Header.FileNameLoc,
                    diag::warn_mmap_incomplete_framework_module_declaration)
           << Header.FileName << M->getFullModuleName();




More information about the cfe-commits mailing list