Skip to content
Commit 53caa4d4 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

Add a warning (-Wnon-pod-memset) for calls to memset() with

a destination pointer that points to a non-POD type. This can flag such
horrible bugs as overwriting vptrs when a previously POD structure is
suddenly given a virtual method, or creating objects that crash on
practically any use by zero-ing out a member when its changed from
a const char* to a std::string, etc.

llvm-svn: 130299
parent 5476666d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment