diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lli/lli.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 5694715d12..0227261f48 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -256,7 +256,8 @@ class LLIObjectCache : public ObjectCache { 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() {} |