[clang-tools-extra] 4dde325 - [clang-tidy] Fix build for gcc5.3 after d725f1ce

Nathan James via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 8 09:25:33 PST 2020


Author: Nathan James
Date: 2020-11-08T17:25:18Z
New Revision: 4dde325004da32fa1a036accd544f57addab9f0c

URL: https://github.com/llvm/llvm-project/commit/4dde325004da32fa1a036accd544f57addab9f0c
DIFF: https://github.com/llvm/llvm-project/commit/4dde325004da32fa1a036accd544f57addab9f0c.diff

LOG: [clang-tidy] Fix build for gcc5.3 after d725f1ce

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/ClangTidyOptions.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp b/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
index 2ac4bbbf36b3..8c78f289502f 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
+++ b/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
@@ -363,7 +363,7 @@ FileOptionsBaseProvider::tryReadConfigFile(StringRef Directory) {
                      << ParsedOptions.getError().message() << "\n";
       continue;
     }
-    return OptionsSource(*ParsedOptions, ConfigFile.str());
+    return OptionsSource(*ParsedOptions, std::string(ConfigFile));
   }
   return llvm::None;
 }


        


More information about the cfe-commits mailing list