Fix -DLLVM_ENABLE_THREADS=OFF build after r334537

llvm-svn: 334582
This commit is contained in:
Hans Wennborg 2018-06-13 08:43:03 +00:00
parent dd69f934b2
commit a4fac8416a

View File

@ -977,7 +977,7 @@ Expected<SymbolMap> blockingLookup(ExecutionSessionBase &ES,
ErrorAsOutParameter _(&ResolutionError);
if (R) {
if (MR)
MR->addDependencies(Result->Dependencies);
MR->addDependencies(R->Dependencies);
Result = std::move(R->Symbols);
} else
ResolutionError = R.takeError();