teak-llvm/lldb/packages/Python/lldbsuite/test/lang/cpp
Raphael Isemann b448d1bf21 [lldb] Fix dynamic_cast by no longer failing on variable without metadata
Summary:
Our IR rewriting infrastructure currently fails when it encounters a variable which has no metadata associated.
This causes dynamic_cast to fail as in this case IRForTarget considers the type info pointers ('@_ZTI...') to be
variables without associated metadata. As there are no variables for these internal variables, this is actually
not an error and dynamic_cast would work fine if we didn't throw this error.

This patch fixes this by removing this diagnostics code. In case we would actually hit a variable that has no
metadata (but is supposed to have), we still have the error in the expression log so this shouldn't make it
harder to diagnose any missing metadata errors.

This patch should fix dynamic_cast and also adds a bunch of test coverage to that language feature.

Fixes rdar://10813639

Reviewers: davide, labath

Reviewed By: labath

Subscribers: friss, labath, abidh, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D65932

llvm-svn: 368511
2019-08-10 10:56:17 +00:00
..
auto [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
bool Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
breakpoint_in_member_func_w_non_primitive_params Fix ClangASTContext::CreateParameterDeclaration to not call addDecl 2019-08-02 21:41:50 +00:00
breakpoint-commands [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
call-function [lldbsuite] Un-xfail tests on Windows that are now passing 2018-12-19 19:04:01 +00:00
chained-calls [lldbsuite] Un-xfail tests on Windows that are now passing (pt.2) 2018-12-19 19:10:25 +00:00
char1632_t [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
class_static [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
class_types [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
class-template-parameter-pack Disabling test in TestClassTemplateParameterPack.py until we do template lookup correctly 2019-05-01 16:39:31 +00:00
const_this Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
diamond Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
dynamic_cast [lldb] Fix dynamic_cast by no longer failing on variable without metadata 2019-08-10 10:56:17 +00:00
dynamic-value [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
dynamic-value-same-basename [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
enum_types [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
exceptions [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
extern_c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
frame-var-anon-unions Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
function_refs XFAIL test on Windows 2019-01-16 22:07:21 +00:00
function-template-parameter-pack Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
global_operators [lldbsuite] Un-xfail tests on Windows that are now passing (pt.2) 2018-12-19 19:10:25 +00:00
global_variables Rename C++ TestGlobalVariables.py to have a distinct name from C version. 2019-04-22 22:16:33 +00:00
gmodules
gmodules-templates
incomplete-types Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
inlines [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
lambdas Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
limit-debug-info
llvm-style Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
member-and-local-vars-with-same-name Inject only relevant local variables in the expression evaluation context 2019-05-02 10:12:56 +00:00
modules-import Improve error handling for Clang module imports. 2019-03-19 15:38:26 +00:00
namespace [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
namespace_conflicts Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
namespace_definitions [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
nsimport
offsetof Add offsetof support to expression evaluator. 2019-07-18 17:58:04 +00:00
operator-overload
overloaded-functions [lldbsuite] Un-xfail tests on Windows that are now passing 2018-12-19 19:04:01 +00:00
printf Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
rvalue-references [lldbsuite] Un-xfail tests on Windows that are now passing 2018-12-19 19:04:01 +00:00
scope [lldbsuite] Un-xfail tests on Windows that are now passing (pt.5) 2018-12-20 02:04:01 +00:00
signed_types [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
static_members Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
static_methods Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
std-function-step-into-callable [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
stl [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
symbols Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
template Add decorator support for the DWARF version produced by the compiler 2019-01-24 18:24:14 +00:00
template-function [TestTemplateFunction] Add a missing debug info variant. 2019-04-25 22:53:10 +00:00
this [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
trivial_abi [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
type_lookup Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
unicode-literals [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
unique-types Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
unsigned_types [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
virtual [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
virtual-overload
wchar_t [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00