]> granicus.if.org Git - clang/commit
[Diagnostics] Check for integer overflow in array size expressions
authorDavid Bolvansky <david.bolvansky@gmail.com>
Thu, 18 Oct 2018 20:49:06 +0000 (20:49 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Thu, 18 Oct 2018 20:49:06 +0000 (20:49 +0000)
commit9687359b2fef960bb0483fbd8157ddff585838ce
treeea582d495c91bc2310982eb6f0dc0dc0050378b3
parent2abe10f0902311fdb2896d3c6223787f51049fac
[Diagnostics] Check for integer overflow in array size expressions

Summary: Fixes PR27439

Reviewers: rsmith, Rakete1111

Reviewed By: rsmith

Subscribers: Rakete1111, cfe-commits

Differential Revision: https://reviews.llvm.org/D52750

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344759 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
lib/AST/ExprConstant.cpp
lib/Sema/SemaExpr.cpp
test/Sema/integer-overflow.c