[PATCH] Add warnings for undefined behaviors with pointers

Reid Kleckner rnk at google.com
Tue Jun 3 11:12:23 PDT 2014


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2394
@@ +2393,3 @@
+  "removed during optimization">,
+  InGroup<UndefinedBoolConversion>, DefaultIgnore;
+def warn_address_of_reference_bool_conversion : Warning<
----------------
Should these really all be DefaultIgnore if we're optimizing these checks away?

http://reviews.llvm.org/D3999






More information about the cfe-commits mailing list