Author: Vassil Vassilev Date: 2022-12-03T08:16:34Z New Revision: 060424178ae3720eeba6a31b579cf2025d47d852
URL: https://github.com/llvm/llvm-project/commit/060424178ae3720eeba6a31b579cf2025d47d852 DIFF: https://github.com/llvm/llvm-project/commit/060424178ae3720eeba6a31b579cf2025d47d852.diff LOG: [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. Added: Modified: clang/lib/CodeGen/CodeGenModule.cpp Removed: ################################################################################ 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()) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits