Skip to content

Commit 19ccdc5

Browse files
committed
Undo the removal of the FileName member
1 parent 1c47266 commit 19ccdc5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Support/LockFileManager.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,16 @@ class RemoveUniqueLockFileOnSignal {
157157

158158
} // end anonymous namespace
159159

160-
LockFileManager::LockFileManager(StringRef FileName) {
161-
SmallString<128> AbsoluteFileName(FileName);
162-
if (std::error_code EC = sys::fs::make_absolute(AbsoluteFileName)) {
160+
LockFileManager::LockFileManager(StringRef FileName)
161+
{
162+
this->FileName = FileName;
163+
if (std::error_code EC = sys::fs::make_absolute(this->FileName)) {
163164
std::string S("failed to obtain absolute path for ");
164-
S.append(std::string(AbsoluteFileName));
165+
S.append(std::string(this->FileName));
165166
setError(EC, S);
166167
return;
167168
}
168-
LockFileName = AbsoluteFileName;
169+
LockFileName = this->FileName;
169170
LockFileName += ".lock";
170171

171172
// If the lock file already exists, don't bother to try to create our own

0 commit comments

Comments
 (0)