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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: AtariDreams (AtariDreams)

<details>
<summary>Changes</summary>

We do not support GCC 4.8 anymore.

---
Full diff: https://github.com/llvm/llvm-project/pull/84229.diff


1 Files Affected:

- (modified) clang/include/clang/AST/Expr.h (+1-1) 


``````````diff
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,

``````````

</details>


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


More information about the cfe-commits mailing list