summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/formatters
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-02-01 21:42:17 +0000
committerPete Cooper <peter_cooper@apple.com>2016-02-01 21:42:17 +0000
commitd714fc75cd8430bec3ceb8acfee15dadd972e67e (patch)
tree55a00fc2fa25ea35ecacb45bdd09bb1b86690c34 /lldb/packages/Python/lldbsuite/test/python_api/formatters
parentdbdb1d6eaf928a6820e0212105a7c8f695a168d1 (diff)
downloadbcm5719-llvm-d714fc75cd8430bec3ceb8acfee15dadd972e67e.tar.gz
bcm5719-llvm-d714fc75cd8430bec3ceb8acfee15dadd972e67e.zip
Use dyn_cast instead of static_cast.
Now that MachoFile has classof(), we can use dyn_cast instead which is actually the only safe way to handle this. Turns out this actually manifests as a bug as we were incorrectly casting instances which weren't MachoFile in to a MachoFile. Unfortunately, there's no reliable way of checking for this as it requires that the file we are looking for has a 0 at exactly the byte we need for the load of subsectionsViaSymbols. llvm-svn: 259413
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/formatters')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud