summaryrefslogtreecommitdiff
path: root/lib/Support/MemoryBuffer.cpp
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
commit455164bdff2ea20ac43a26388a7bea760581708d (patch)
treeebf1fd75bb9a7873feef5f4e6046431363c6a66d /lib/Support/MemoryBuffer.cpp
parent9d4588ffadfdf6c190758200b2ca69742f46d239 (diff)
downloadllvm-455164bdff2ea20ac43a26388a7bea760581708d.tar.gz
llvm-455164bdff2ea20ac43a26388a7bea760581708d.tar.bz2
llvm-455164bdff2ea20ac43a26388a7bea760581708d.tar.xz
Add an explicit keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/MemoryBuffer.cpp')
-rw-r--r--lib/Support/MemoryBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp
index ac79518903..e8c34da49b 100644
--- a/lib/Support/MemoryBuffer.cpp
+++ b/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); }
};
}