llvm-project/clang/lib
Alexey Samsonov f624650354 Unify the way we report overflow in increment/decrement operator.
Summary:
Make sure signed overflow in "x--" is checked with
llvm.ssub.with.overflow intrinsic and is reported as:
  "-2147483648 - 1 cannot be represented in type 'int'"
instead of:
  "-2147483648 + -1 cannot be represented in type 'int'"
, like we do for unsigned overflow.

Test Plan: clang + compiler-rt regression test suite

Reviewers: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D8236

llvm-svn: 235568
2015-04-23 01:50:45 +00:00
..
ARCMigrate Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:00:23 +00:00
AST Wrap to 80 columns, fix typo in comment. No behavior change. 2015-04-22 03:44:51 +00:00
ASTMatchers Add conversionDecl matcher for node CXXConversionDecl. 2015-04-20 20:58:50 +00:00
Analysis Fix for PR20402 in -Wconsumed. 2015-04-15 22:32:44 +00:00
Basic Implement target-specific __attribute__((aligned)) value 2015-04-21 17:29:35 +00:00
CodeGen Unify the way we report overflow in increment/decrement operator. 2015-04-23 01:50:45 +00:00
Driver [AArch64] Add v8.1a architecture 2015-04-16 15:53:09 +00:00
Edit [edit] Don't hit an assert when trying to delete a trailing space at EOF 2015-03-29 18:07:29 +00:00
Format clang-format: Fix for #pragma option formatting. 2015-04-22 09:45:42 +00:00
Frontend Create a frontend flag to disable CUDA cross-target call checks 2015-04-15 22:27:06 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers [cuda] Added support for CUDA built-in variables. 2015-04-21 22:14:13 +00:00
Index Remove empty non-virtual destructors or mark them =default when non-public 2015-04-11 15:58:30 +00:00
Lex [modules] Cope with partial module macro information, fix memory leak found by buildbot. 2015-04-22 02:09:43 +00:00
Parse Put statement expression decls in the enclosing code DeclContext 2015-04-20 20:00:49 +00:00
Rewrite Remove empty non-virtual destructors or mark them =default when non-public 2015-04-11 15:58:30 +00:00
Sema [OPENMP] Codegen for 'private' clause in 'for' directive. 2015-04-22 12:24:45 +00:00
Serialization Silencing a -Wunused-variable warning; NFC. 2015-04-22 15:25:05 +00:00
StaticAnalyzer Add a missing forward def of CheckerManager. NFC. 2015-04-17 17:00:16 +00:00
Tooling Fix bug in Replacement's toString on Windows (missing flush). 2015-04-20 06:58:56 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00