[clang] [AST] Resolve FIXME: Assign E to nullptr (PR #84229)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 12:27:15 PST 2024


https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/84229

We do not support GCC 4.8 anymore.

>From 46da573d7a6be27b808240985b8b2e81eaadba26 Mon Sep 17 00:00:00 2001
From: Rose <gfunni234 at gmail.com>
Date: Wed, 6 Mar 2024 15:26:53 -0500
Subject: [PATCH] [AST] Resolve FIXME: Assign E to nullptr

We do not support GCC 4.8 anymore.
---
 clang/include/clang/AST/Expr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index f7857d63bdef08..446bec4081e869 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -5843,7 +5843,7 @@ class GenericSelectionExpr final
         std::conditional_t<Const, const Stmt *const *, Stmt **>;
     using TSIPtrPtrTy = std::conditional_t<Const, const TypeSourceInfo *const *,
                                            TypeSourceInfo **>;
-    StmtPtrPtrTy E; // = nullptr; FIXME: Once support for gcc 4.8 is dropped.
+    StmtPtrPtrTy E = nullptr;
     TSIPtrPtrTy TSI; // Kept in sync with E.
     unsigned Offset = 0, SelectedOffset = 0;
     AssociationIteratorTy(StmtPtrPtrTy E, TSIPtrPtrTy TSI, unsigned Offset,



More information about the cfe-commits mailing list