Remove uses of StringMap::GetOrCreateValue in favor of stl-compatible API usage

llvm-svn: 222305
This commit is contained in:
David Blaikie 2014-11-19 03:05:07 +00:00
parent 206b15b2e4
commit 8e6cf9e579
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}