summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Support/raw_ostream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/raw_ostream.h b/llvm/include/llvm/Support/raw_ostream.h
index 55cc957b20c..aeeb7e3abc4 100644
--- a/llvm/include/llvm/Support/raw_ostream.h
+++ b/llvm/include/llvm/Support/raw_ostream.h
@@ -365,7 +365,7 @@ class raw_string_ostream : public raw_ostream {
/// counting the bytes currently in the buffer.
virtual uint64_t current_pos() { return OS.size(); }
public:
- raw_string_ostream(std::string &O) : OS(O) {}
+ explicit raw_string_ostream(std::string &O) : OS(O) {}
~raw_string_ostream();
/// tell - Return the current offset with the stream.
@@ -392,7 +392,7 @@ class raw_svector_ostream : public raw_ostream {
/// counting the bytes currently in the buffer.
virtual uint64_t current_pos();
public:
- raw_svector_ostream(SmallVectorImpl<char> &O) : OS(O) {}
+ explicit raw_svector_ostream(SmallVectorImpl<char> &O) : OS(O) {}
~raw_svector_ostream();
/// tell - Return the current offset with the stream.
OpenPOWER on IntegriCloud