Remove uses of StringMap::GetOrCreateValue in favor of stl-compatible API usage
llvm-svn: 222305
This commit is contained in:
parent
206b15b2e4
commit
8e6cf9e579
|
@ -190,10 +190,10 @@ const ClangTidyOptions &FileOptionsProvider::getOptions(StringRef FileName) {
|
||||||
while (Path != CurrentPath) {
|
while (Path != CurrentPath) {
|
||||||
DEBUG(llvm::dbgs() << "Caching configuration for path " << Path
|
DEBUG(llvm::dbgs() << "Caching configuration for path " << Path
|
||||||
<< ".\n");
|
<< ".\n");
|
||||||
CachedOptions.GetOrCreateValue(Path, *Result);
|
CachedOptions[Path] = *Result;
|
||||||
Path = llvm::sys::path::parent_path(Path);
|
Path = llvm::sys::path::parent_path(Path);
|
||||||
}
|
}
|
||||||
return CachedOptions.GetOrCreateValue(Path, *Result).getValue();
|
return CachedOptions[Path] = *Result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue