[PATCH] D70122: [cmake] Disable GCC 9's -Winit-list-lifetime warning in ArrayRef

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 09:47:18 PST 2019


rnk added inline comments.


================
Comment at: llvm/include/llvm/ADT/ArrayRef.h:100
     /// Construct an ArrayRef from a std::initializer_list.
+#if __GNUC__ >= 9
+// Disable gcc's warning in this constructor as it generates an enormous amount
----------------
Use `LLVM_GNUC_PREREQ` to gracefully handle the case of `__GNUC__` being undefined.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70122/new/

https://reviews.llvm.org/D70122





More information about the llvm-commits mailing list