llvm-capstone/llvm
Pavel Labath 6c2151bf4c [cmake] Disable GCC 9's -Winit-list-lifetime warning in ArrayRef
Summary:
This is a new warning which fires when one stores a reference to the
initializer_list contents in a way which may outlive the
initializer_list which it came from. In llvm this warning is triggered
whenever someone uses the initializer_list ArrayRef constructor.

This is indeed a dangerous thing to do (I myself was bitten by that at
least once), but it is not more dangerous than calling other ArrayRef
constructors with temporary objects -- something which we are used to
and have accepted as a tradeoff for ArrayRef's efficiency.

Currently, this warnings generates so much output that it completely
obscures any actionable warnings, so this patch disables it.

Reviewers: rnk, aaron.ballman

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70122
2019-11-19 17:26:57 +01:00
..
benchmarks
bindings Revert "[Bindings][Go] Fix go.test failure due to missing argument" 2019-11-19 09:59:43 +08:00
cmake Fix use of add_llvm_tool in projects that build no targets 2019-11-14 10:53:46 +00:00
docs [docs] Fix broken links in Kaleidoscope chapter 3 2019-11-17 21:35:02 -05:00
examples [ORC] Add a utility to support dumping JIT'd objects to disk for debugging. 2019-11-14 21:27:19 -08:00
include [cmake] Disable GCC 9's -Winit-list-lifetime warning in ArrayRef 2019-11-19 17:26:57 +01:00
lib [AIX][XCOFF] Write Function descriptors and TOC base to data section 2019-11-19 16:11:00 +00:00
projects
resources
runtimes
test [AIX][XCOFF] Write Function descriptors and TOC base to data section 2019-11-19 16:11:00 +00:00
tools [llvm-objdump] Print relocation addends in hexadecimal 2019-11-19 12:27:18 +00:00
unittests Add streaming/equality operators to DWARFAddressRange/DWARFLocationExpression 2019-11-19 10:34:30 +01:00
utils gn build: Merge 765b1250f6 2019-11-19 15:33:25 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [cmake] Emit an error for -DBUILD_SHARED_LIBS=ON on Windows 2019-11-14 10:19:02 -08:00
CODE_OWNERS.TXT
configure
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.