diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-27 07:05:31 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-27 07:05:31 +0000 |
| commit | 53caa4d4fac7f53c1942f55951905e3e2e145524 (patch) | |
| tree | 3bfabd5286a5fedefda46ce3f2970fdd0474d37c /llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp | |
| parent | 5476666d173861917bab2d35c5402ab4f9bf1672 (diff) | |
| download | bcm5719-llvm-53caa4d4fac7f53c1942f55951905e3e2e145524.tar.gz bcm5719-llvm-53caa4d4fac7f53c1942f55951905e3e2e145524.zip | |
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
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp')
0 files changed, 0 insertions, 0 deletions

