summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FileOutputBuffer.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-07 04:17:22 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-07 04:17:22 +0000
commitc10719f55d3babe47ce754ad4e4964c7cd90d6e8 (patch)
tree28574fe7c646e03e6660387f3595f098d75fcd3f /llvm/lib/Support/FileOutputBuffer.cpp
parent093edf8c7f4d44979376892303d101f02924c68f (diff)
downloadbcm5719-llvm-c10719f55d3babe47ce754ad4e4964c7cd90d6e8.tar.gz
bcm5719-llvm-c10719f55d3babe47ce754ad4e4964c7cd90d6e8.zip
[C++11] Make use of 'nullptr' in the Support library.
llvm-svn: 205697
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
-rw-r--r--llvm/lib/Support/FileOutputBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp
index 8f2c9fcce08..7e922df1358 100644
--- a/llvm/lib/Support/FileOutputBuffer.cpp
+++ b/llvm/lib/Support/FileOutputBuffer.cpp
@@ -97,7 +97,7 @@ error_code FileOutputBuffer::create(StringRef FilePath,
error_code FileOutputBuffer::commit(int64_t NewSmallerSize) {
// Unmap buffer, letting OS flush dirty pages to file on disk.
- Region.reset(0);
+ Region.reset(nullptr);
// If requested, resize file as part of commit.
if ( NewSmallerSize != -1 ) {
OpenPOWER on IntegriCloud