HomePhabricator

[Sema] Add -Wpointer-compare

Authored by george.burgess.iv on Aug 5 2019, 3:15 PM.

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

llvm-svn: 367940

Details

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