diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-12-07 20:04:57 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-12-07 20:04:57 +0000 |
commit | cbc12262e3219cdcfdedd11b2321280cb520a3bf (patch) | |
tree | 2fc469924710636dfb48085395420ae9f8082bb3 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py | |
parent | 9ed1baed6fa40c2c25d2748e81359c54a0e00dcf (diff) | |
download | bcm5719-llvm-cbc12262e3219cdcfdedd11b2321280cb520a3bf.tar.gz bcm5719-llvm-cbc12262e3219cdcfdedd11b2321280cb520a3bf.zip |
AST: defer to TypeLoc::copy in TypeLoc::initializeFullCopy
If we're initializing a TypeLoc from one that's been allocated with
different alignment, memcpy will get the padding wrong. The `copy`
method already checks and handles this case, so we should just defer
to it.
This also drops the `const` off of the `initializeFullCopy`
declarations, since it isn't even remotely true (and the compiler
notices when we try to call copy() instead of tricking it with
memcpy).
Fixes llvm.org/pr23516.
llvm-svn: 254935
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py')
0 files changed, 0 insertions, 0 deletions