HomePhabricator

[Sema] Add -Wpointer-compare

Description

[Sema] Add -Wpointer-compare

This patch adds a warning that diagnoses comparisons of pointers to
'\0'. This is often indicative of a bug (e.g. the user might've
forgotten to dereference the pointer).

Patch by Elaina Guan!

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

Details

Committed
gbivAug 5 2019, 3:15 PM
Differential Revision
D65595: Add -Wpointer-compare
Parents
rL367939: [OpenMP] Fix broken build due to new OMPT tests
Branches
Unknown
Tags
Unknown