Merge pull request #1649 from JohanEngelen/warningfix1

Fix a few clang warnings [NFC]
This commit is contained in:
kinke 2016-07-28 00:46:53 +02:00 committed by GitHub
commit dbc9733a05
5 changed files with 6 additions and 18 deletions

View file

@ -34,13 +34,6 @@
//////////////////////////////////////////////////////////////////////////////
static bool endsWith(const std::string &str, const std::string &end) {
return (str.length() >= end.length() &&
std::equal(end.rbegin(), end.rend(), str.rbegin()));
}
//////////////////////////////////////////////////////////////////////////////
static void CreateDirectoryOnDisk(llvm::StringRef fileName) {
auto dir = llvm::sys::path::parent_path(fileName);
if (!dir.empty() && !llvm::sys::fs::exists(dir)) {