Enrico Granata
fee0aba006
It has been brought to my attention that, given two variables
...
T x;
U y;
doing
x = *((T*)y)
is undefined behavior, even if sizeof(T) == sizeof(U), due to pointer aliasing rules
Fix up a couple of places in LLDB that were doing this, and transform them into a defined and safe memcpy() operation
Also, add a test case to ensure we didn't regress by doing this w.r.t. tagged pointer NSDate instances
llvm-svn: 270793
2016-05-25 23:19:01 +00:00
..
2016-03-15 23:38:04 +00:00
2016-02-04 23:04:17 +00:00
2015-11-03 19:20:39 +00:00
2016-03-30 22:45:13 +00:00
2016-02-08 19:34:59 +00:00
2016-05-16 17:27:26 +00:00
2015-11-03 19:20:39 +00:00
2015-11-03 19:20:39 +00:00
2016-03-30 22:45:13 +00:00
2016-05-25 23:19:01 +00:00
2016-04-08 22:49:31 +00:00
2015-11-03 19:20:39 +00:00
2016-04-14 14:35:02 +00:00
2016-01-29 00:56:52 +00:00
2016-05-12 22:33:02 +00:00
2016-04-14 14:35:02 +00:00
2016-05-25 20:38:33 +00:00
2015-11-26 16:11:57 +00:00
2016-05-13 18:26:30 +00:00
2016-02-08 19:34:59 +00:00
2016-02-08 19:34:59 +00:00
2015-11-03 19:20:39 +00:00
2015-11-03 19:20:39 +00:00
2015-11-03 19:20:39 +00:00
2016-01-08 22:21:40 +00:00
2016-02-04 23:04:17 +00:00
2016-02-04 23:04:17 +00:00
2016-02-04 23:04:17 +00:00
2016-02-04 23:04:17 +00:00
2016-04-25 00:52:47 +00:00
2016-04-25 00:52:47 +00:00
2015-11-03 19:20:39 +00:00
2015-11-03 19:20:39 +00:00
2016-02-04 23:04:17 +00:00
2016-02-08 19:34:59 +00:00
2015-11-03 19:20:39 +00:00
2016-04-14 14:35:02 +00:00
2016-02-04 23:04:17 +00:00
2016-02-04 23:04:17 +00:00
2016-02-04 23:04:17 +00:00
2016-02-09 21:36:15 +00:00
2015-11-03 19:20:39 +00:00
2015-11-03 19:20:39 +00:00
2016-02-04 23:04:17 +00:00
2016-02-04 18:03:01 +00:00