This is an archive of the discontinued LLVM Phabricator instance.

Fix implicit conversion from _Nullable to _Nonnull warnings in C++
ClosedPublic

Authored by george.burgess.iv on Nov 23 2015, 2:51 PM.

Details

Summary

Currently, code like this compiles cleanly in C++, but with warnings (as it should) in C:

int foo() {
  void *_Nullable p;
  void *_Nonnull n = p;
}

This patch makes us emit the appropriate warnings in C++.

@doug.gregor: arc said you would be best to review this; if you're unable to, I'm happy to ping others. :)

Diff Detail

Repository
rL LLVM

Event Timeline

george.burgess.iv retitled this revision from to Fix implicit conversion from _Nullable to _Nonnull warnings in C++.
george.burgess.iv updated this object.
george.burgess.iv added a reviewer: doug.gregor.
This revision was automatically updated to reflect the committed changes.