mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 05:26:50 +00:00
Simplify code.
Patch contributed by Jeff Cohen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e26057a376
commit
9860121890
@ -12,7 +12,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Win32.h"
|
||||
#include <llvm/System/Signals.h>
|
||||
#include <stdio.h>
|
||||
#include <vector>
|
||||
|
||||
@ -81,7 +80,7 @@ void sys::RemoveFileOnSignal(const sys::Path &Filename) {
|
||||
if (FilesToRemove == NULL)
|
||||
FilesToRemove = new std::vector<sys::Path>;
|
||||
|
||||
FilesToRemove->push_back(sys::Path(Filename.get()));
|
||||
FilesToRemove->push_back(Filename);
|
||||
|
||||
LeaveCriticalSection(&CriticalSection);
|
||||
}
|
||||
|
@ -12,7 +12,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Win32.h"
|
||||
#include <llvm/System/Signals.h>
|
||||
#include <stdio.h>
|
||||
#include <vector>
|
||||
|
||||
@ -81,7 +80,7 @@ void sys::RemoveFileOnSignal(const sys::Path &Filename) {
|
||||
if (FilesToRemove == NULL)
|
||||
FilesToRemove = new std::vector<sys::Path>;
|
||||
|
||||
FilesToRemove->push_back(sys::Path(Filename.get()));
|
||||
FilesToRemove->push_back(Filename);
|
||||
|
||||
LeaveCriticalSection(&CriticalSection);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user