[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:19 PST 2019


rnk added a comment.

Looks good with the fix.



================
Comment at: llvm/include/llvm/ADT/ArrayRef.h:110
       Length(Vec.size()) {}
+#if __GNUC__ >= 9
+#pragma GCC diagnostic pop
----------------
ditto


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