PR5683: Issue a warning when subtracting pointers to types of zero size, and
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Sep 2013 21:34:14 +0000 (21:34 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Sep 2013 21:34:14 +0000 (21:34 +0000)
commit84c6b3d293d91e9d8403108d5069f7b6e6a57afa
treed9aef84d54689cd71d22630bb269ad86066e0dd2
parent754a3ead62b5a5bf685d23ab914148c55307106c
PR5683: Issue a warning when subtracting pointers to types of zero size, and
treat such subtractions as being non-constant. Patch by Serge Pavlov! With a
few tweaks by me.

llvm-svn: 190439
clang/include/clang/Basic/DiagnosticASTKinds.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ExprConstant.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/empty1.c
clang/test/SemaCXX/constant-expression-cxx11.cpp