llvm/clang
Florian Hahn bc72a3ab94 [Constants] Handle FNeg in getWithOperands.
Currently ConstantExpr::getWithOperands does not handle FNeg and
subsequently treats FNeg as binary operator, leading to an assertion
failure or segmentation fault if built without assertions.

Originally I reproduced this with llvm-dis on a bitcode file, which I
unfortunately cannot share and also cannot really reduce.

But PR45426 describes the same issue and has a reproducer with Clang, so
I'll go with that.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D86274
2020-08-21 16:50:56 +01:00
..
bindings
cmake Revert "Re-Re-land: [CodeView] Add full repro to LF_BUILDINFO record" 2020-08-17 15:49:18 -04:00
docs [X86] Enable constexpr on BITSCAN intrinsics (PR31446) 2020-08-21 11:44:20 +01:00
examples
include Revert "Correctly emit dwoIDs after ASTFileSignature refactoring (D81347)" 2020-08-21 16:08:37 +02:00
INPUTS
lib Revert "Correctly emit dwoIDs after ASTFileSignature refactoring (D81347)" 2020-08-21 16:08:37 +02:00
runtime Revert "[compiler-rt] Compile assembly files as ASM not C" 2020-08-20 15:25:22 +02:00
test [Constants] Handle FNeg in getWithOperands. 2020-08-21 16:50:56 +01:00
tools
unittests [SyntaxTree] Use annotations in Statement tests 2020-08-21 14:42:33 +00:00
utils Introduce ns_error_domain attribute. 2020-08-13 15:05:12 +02:00
www
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.llvm.org/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/