diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidyOptions.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidyOptions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp b/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp index bdd503bf827..47be061ff02 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp @@ -190,10 +190,10 @@ const ClangTidyOptions &FileOptionsProvider::getOptions(StringRef FileName) { while (Path != CurrentPath) { DEBUG(llvm::dbgs() << "Caching configuration for path " << Path << ".\n"); - CachedOptions.GetOrCreateValue(Path, *Result); + CachedOptions[Path] = *Result; Path = llvm::sys::path::parent_path(Path); } - return CachedOptions.GetOrCreateValue(Path, *Result).getValue(); + return CachedOptions[Path] = *Result; } } } |

