summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-22 13:53:29 +0000
committerDan Gohman <gohman@apple.com>2010-06-22 13:53:29 +0000
commit2ceaa71bdb4ad88c6f34ca840f6aedf8f5259168 (patch)
treeb75c8a8694ae4fb6765abd2bdf8f0cef1a7fe9d5 /llvm/lib/Support
parentf820bd327d1f2f39032c367a6db4c491579250e3 (diff)
downloadbcm5719-llvm-2ceaa71bdb4ad88c6f34ca840f6aedf8f5259168.tar.gz
bcm5719-llvm-2ceaa71bdb4ad88c6f34ca840f6aedf8f5259168.zip
Add an explicit keyword.
llvm-svn: 106538
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/MemoryBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp
index ac795189036..e8c34da49b8 100644
--- a/llvm/lib/Support/MemoryBuffer.cpp
+++ b/llvm/lib/Support/MemoryBuffer.cpp
@@ -170,7 +170,7 @@ public:
class FileCloser {
int FD;
public:
- FileCloser(int FD) : FD(FD) {}
+ explicit FileCloser(int FD) : FD(FD) {}
~FileCloser() { ::close(FD); }
};
}
OpenPOWER on IntegriCloud