Skip to content

Commit

Permalink
Revert "[AsmParser] Avoid instantiating LLVMContext if not needed. NFC"
Browse files Browse the repository at this point in the history
This reverts commit c1888a3
because of massive buildbolt failures.
  • Loading branch information
Yevgeny Rouban committed Mar 20, 2023
1 parent c59465e commit e735620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/AsmParser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ static bool parseAssemblyInto(MemoryBufferRef F, Module *M,
std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F);
SM.AddNewSourceBuffer(std::move(Buf), SMLoc());

std::optional<LLVMContext> OptContext;
LLVMContext Context;
return LLParser(F.getBuffer(), SM, Err, M, Index,
M ? M->getContext() : OptContext.emplace(), Slots)
M ? M->getContext() : Context, Slots)
.Run(UpgradeDebugInfo, DataLayoutCallback);
}

Expand Down

0 comments on commit e735620

Please sign in to comment.