diff options
| author | Vassil Vassilev <v.g.vassilev@gmail.com> | 2022-12-03 08:05:39 +0000 |
|---|---|---|
| committer | Vassil Vassilev <v.g.vassilev@gmail.com> | 2022-12-03 08:16:34 +0000 |
| commit | 060424178ae3720eeba6a31b579cf2025d47d852 (patch) | |
| tree | 82d028ea671361651f8566a70bc32dcb1125ab27 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | bfab778e95004bd71da7685ada25aa420a1a3291 (diff) | |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |
