forked from OSchip/llvm-project
[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:
parent
bfab778e95
commit
060424178a
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue