[PATCH] D30283: [ubsan] Reduce alignment checking of C++ object pointers

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 21 17:59:15 PDT 2017


efriedma added inline comments.


================
Comment at: test/CodeGenCXX/ubsan-global-alignment.cpp:9
+extern S1 S1_array[];
+extern S1 *S1ptr_array[];
+
----------------
Probably a good idea to also test extern globals which aren't arrays; arrays are sort of a special-case due to array->pointer decay.


https://reviews.llvm.org/D30283





More information about the cfe-commits mailing list