new in C++11.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198853
91177308-0d34-0410-b5e6-
96231b3b80d8
public:
LLIObjectCache(const std::string& CacheDir) : CacheDir(CacheDir) {
// Add trailing '/' to cache dir if necessary.
- if (!this->CacheDir.empty() && this->CacheDir.back() != '/')
+ if (!this->CacheDir.empty() &&
+ this->CacheDir[this->CacheDir.size() - 1] != '/')
this->CacheDir += '/';
}
virtual ~LLIObjectCache() {}