-Wdeprecated clean by making LogBuilder move constructible so it can be returned by value (in DifferenceEngine::logf)

llvm-svn: 244129
This commit is contained in:
David Blaikie
2015-08-05 21:06:50 +00:00
parent 8662083770
commit 1d8ef29413
2 changed files with 9 additions and 4 deletions

View File

@@ -20,7 +20,8 @@
using namespace llvm;
LogBuilder::~LogBuilder() {
consumer.logf(*this);
if (consumer)
consumer->logf(*this);
}
StringRef LogBuilder::getFormat() const { return Format; }