diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-11-19 03:05:07 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-11-19 03:05:07 +0000 |
| commit | 8e6cf9e5791083103ea711200b8315520c502adb (patch) | |
| tree | d784fe1b2532c471a8037d3983125b95d822c265 /clang-tools-extra/clang-tidy/ClangTidyOptions.cpp | |
| parent | 206b15b2e4f5c55c12544e3549cb09e6167c95e5 (diff) | |
| download | bcm5719-llvm-8e6cf9e5791083103ea711200b8315520c502adb.tar.gz bcm5719-llvm-8e6cf9e5791083103ea711200b8315520c502adb.zip | |
Remove uses of StringMap::GetOrCreateValue in favor of stl-compatible API usage
llvm-svn: 222305
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; } } } |

