diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-07-19 01:05:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-07-19 01:05:11 +0000 |
commit | b61064ed398191460f746e05a8ef8cb48b64a436 (patch) | |
tree | 5fa8c50aa663fb9237d0c8ebea6f762c4e7862b7 /llvm/lib/Support/FileOutputBuffer.cpp | |
parent | b530bc0242901d1322d77ce24b64eda10554c35f (diff) | |
download | llvm-b61064ed398191460f746e05a8ef8cb48b64a436.zip llvm-b61064ed398191460f746e05a8ef8cb48b64a436.tar.gz llvm-b61064ed398191460f746e05a8ef8cb48b64a436.tar.bz2 |
Remove uses of the redundant ".reset(nullptr)" of unique_ptr, in favor of ".reset()"
It's also possible to just write "= nullptr", but there's some question
of whether that's as readable, so I leave it up to authors to pick which
they prefer for now. If we want to discuss standardizing on one or the
other, we can do that at some point in the future.
llvm-svn: 213438
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/FileOutputBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp index 2e740ca..94bcdc5 100644 --- a/llvm/lib/Support/FileOutputBuffer.cpp +++ b/llvm/lib/Support/FileOutputBuffer.cpp @@ -87,7 +87,7 @@ FileOutputBuffer::create(StringRef FilePath, size_t Size, std::error_code FileOutputBuffer::commit(int64_t NewSmallerSize) { // Unmap buffer, letting OS flush dirty pages to file on disk. - Region.reset(nullptr); + Region.reset(); // If requested, resize file as part of commit. if ( NewSmallerSize != -1 ) { |