[PATCH] D37042: Teach clang to tolerate the 'p = nullptr + n' idiom used by glibc
Andy Kaylor via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 30 17:57:53 PDT 2017
andrew.w.kaylor updated this revision to Diff 113343.
andrew.w.kaylor added a comment.
Fixed value-dependent argument in isNullPointerConstant checks.
Added check for C++ zero offset in subtraction.
Added value-dependent test cases.
https://reviews.llvm.org/D37042
Files:
include/clang/AST/Expr.h
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Expr.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaExpr.cpp
test/CodeGen/nullptr-arithmetic.c
test/Sema/pointer-addition.c
test/SemaCXX/nullptr-arithmetic.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37042.113343.patch
Type: text/x-patch
Size: 13838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170831/712ff049/attachment-0001.bin>
More information about the cfe-commits
mailing list