summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FileOutputBuffer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-31 01:37:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-31 01:37:45 +0000
commit03bddfee473f0655025a4e31bc80b5654afb2dbd (patch)
tree118957c57f1aab51e07391bb8c05e926c1db8930 /llvm/lib/Support/FileOutputBuffer.cpp
parentec1aacaf5c9b5a9ff7ca7ab7a99b4c6bbdfb6fca (diff)
downloadbcm5719-llvm-03bddfee473f0655025a4e31bc80b5654afb2dbd.tar.gz
bcm5719-llvm-03bddfee473f0655025a4e31bc80b5654afb2dbd.zip
Use error_code() instead of error_code::succes()
There is no std::error_code::success, so this removes much of the noise in transitioning to std::error_code. llvm-svn: 209952
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 49311c29d8b..5f74d00c6b5 100644
--- a/llvm/lib/Support/FileOutputBuffer.cpp
+++ b/llvm/lib/Support/FileOutputBuffer.cpp
@@ -81,7 +81,7 @@ error_code FileOutputBuffer::create(StringRef FilePath,
if (Result)
MappedFile.release();
- return error_code::success();
+ return error_code();
}
error_code FileOutputBuffer::commit(int64_t NewSmallerSize) {
OpenPOWER on IntegriCloud