[clang-repl] Fix ambiguous initializer list.

Some platforms report that GlobalTopLevelStmtBlockInFlight cannot be initalized
with '{}' due to operator '=' being ambiguous.

This patch is a follow up to https://reviews.llvm.org/D127284 trying to appease
the bots.
This commit is contained in:
Vassil Vassilev 2022-12-03 08:05:39 +00:00
parent bfab778e95
commit 060424178a
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ void CodeGenModule::Release() {
GlobalTopLevelStmtBlockInFlight.first) {
const TopLevelStmtDecl *TLSD = GlobalTopLevelStmtBlockInFlight.second;
GlobalTopLevelStmtBlockInFlight.first->FinishFunction(TLSD->getEndLoc());
GlobalTopLevelStmtBlockInFlight = {};
GlobalTopLevelStmtBlockInFlight = {nullptr, nullptr};
}
if (CXX20ModuleInits && Primary && Primary->isInterfaceOrPartition())