[ORC] Fix an assertion condition from r329934.

Thanks to Alexander Ivchenko for finding the issue!

llvm-svn: 330359
This commit is contained in:
Lang Hames 2018-04-19 19:30:35 +00:00
parent bc895a3afc
commit ee68ec06a1
1 changed files with 2 additions and 2 deletions

View File

@ -410,8 +410,8 @@ Error VSO::defineLazy(std::unique_ptr<MaterializationUnit> MU) {
for (auto &KV : UMII->Symbols) {
auto I = Symbols.find(KV.first);
assert(I == Symbols.end() ||
!I->second.Flags.isMaterializing() &&
assert((I == Symbols.end() ||
!I->second.Flags.isMaterializing()) &&
"Attempt to replace materializing symbol definition");
auto LinkageResult = compareLinkage(