This move some of the complexity over to the lower level TempFile.
It also makes it a bit more explicit where errors are ignored since we now have a call to consumeError.
Paths
| Differential D39990
Use TempFile in the implementation of LockFileManager AbandonedPublic Authored by • espindola on Nov 13 2017, 4:50 PM.
Details
Summary This move some of the complexity over to the lower level TempFile. It also makes it a bit more explicit where errors are ignored since we now have a call to consumeError.
Diff Detail Event TimelineThis revision now requires changes to proceed.Nov 14 2017, 11:18 AM Comment Actions Ping. This is now the last use of this sys::fs::createUniqueFile variant in llvm proper. Comment Actions lgtm, let's give it a go.
Comment Actions r318550 I kept the RAII class outside the function since a cancelable cleanup seems a general concept and we might want to move it to a header in the future. • espindola abandoned this revision.
Revision Contents
Diff 122912 include/llvm/Support/LockFileManager.h
lib/Support/LockFileManager.cpp
|
The constructor is being called with a temporary lambda, so this is going to create a use-after-free.