diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-22 13:53:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-22 13:53:29 +0000 |
commit | 2ceaa71bdb4ad88c6f34ca840f6aedf8f5259168 (patch) | |
tree | b75c8a8694ae4fb6765abd2bdf8f0cef1a7fe9d5 /llvm/lib/Support | |
parent | f820bd327d1f2f39032c367a6db4c491579250e3 (diff) | |
download | bcm5719-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.cpp | 2 |
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); } }; } |