diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-10-16 23:42:42 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-10-16 23:42:42 +0000 |
commit | 3a118aa3443d6a7da034e1bb9b3d7ae22adbe42d (patch) | |
tree | c73e92a029aa253fd0b5133f0e3ea7cf2745895e /debuginfo-tests/nested-struct.cpp | |
parent | e02eca7a42d0957421219f812b92eb2fb558b6e3 (diff) | |
download | bcm5719-llvm-3a118aa3443d6a7da034e1bb9b3d7ae22adbe42d.tar.gz bcm5719-llvm-3a118aa3443d6a7da034e1bb9b3d7ae22adbe42d.zip |
[mach-o] Fix crash when -all_load used with dylibs
-all_load tells the darwin linker to immediately load all members of all
archives. The code do that used reinterpret_cast<> instead of dyn_cast<>.
If the file was a dylib, the reinterpret_cast<> turned a pointer to a dylib
into a pointer to an archive...boom.
Added test case to reproduce the crash, simplified the code and used dyn_cast<>.
llvm-svn: 219990
Diffstat (limited to 'debuginfo-tests/nested-struct.cpp')
0 files changed, 0 insertions, 0 deletions