Changed to avoid wanings when using Xcode >= 7.3

This commit is contained in:
Pere Mato 2016-03-24 11:49:59 +01:00 committed by sftnight
parent b9a2d80235
commit 1c1db3c3c9
4 changed files with 5 additions and 6 deletions

View File

@ -830,7 +830,7 @@ namespace {
// Set up the ASTConsumers
CI->getASTContext().setASTMutationListener(stateCollector.get());
// Add the callback keeping track of the macro definitions
PP.addPPCallbacks(std::move(stateCollector->MakePPAdapter()));
PP.addPPCallbacks(stateCollector->MakePPAdapter());
CI->setASTConsumer(std::move(stateCollector));
}

View File

@ -60,8 +60,7 @@ IncrementalExecutor::IncrementalExecutor(clang::DiagnosticsEngine& diags,
// can use this object yet.
m_AtExitFuncs.reserve(256);
m_JIT.reset(new IncrementalJIT(*this,
std::move(CreateHostTargetMachine(CGOpt))));
m_JIT.reset(new IncrementalJIT(*this, CreateHostTargetMachine(CGOpt)));
}
// Keep in source: ~unique_ptr<ClingJIT> needs ClingJIT
@ -109,7 +108,7 @@ std::unique_ptr<TargetMachine>
Options,
RelocModel, CMModel,
OptLevel));
return std::move(TM);
return TM;
}
void IncrementalExecutor::shuttingDown() {

View File

@ -160,7 +160,7 @@ IncrementalJIT::IncrementalJIT(IncrementalExecutor& exe,
std::unique_ptr<TargetMachine> TM):
m_Parent(exe),
m_TM(std::move(TM)),
m_ExeMM(std::move(llvm::make_unique<ClingMemoryManager>(m_Parent))),
m_ExeMM(llvm::make_unique<ClingMemoryManager>(m_Parent)),
m_Mang(m_TM->getDataLayout()),
m_NotifyObjectLoaded(*this), m_NotifyFinalized(*this),
m_ObjectLayer(ObjectLayerT::CreateRTDyldMMFtor(), m_NotifyObjectLoaded,

View File

@ -553,7 +553,7 @@ namespace clang {
// Validate redecl chain by iterating through it.
std::set<clang::Redeclarable<T>*> CheckUnique;
(void)CheckUnique;
for (auto&& RD: MostRecentNotThis->redecls()) {
for (auto RD: MostRecentNotThis->redecls()) {
assert(CheckUnique.insert(RD).second && "Dupe redecl chain element");
(void)RD;
}