From 060424178ae3720eeba6a31b579cf2025d47d852 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 3 Dec 2022 08:05:39 +0000 Subject: [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. --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 0327d535968b..073e88016b72 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -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()) -- cgit v1.2.3