mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Fix accidental use of the exotic "std::string::back()" method. Turns out it's
new in C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4442b6ec3a
commit
0ee9bc7894
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user