mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-10 13:36:09 +00:00

Summary: Stopgap patch to at least stop all the crashes I get from this code. Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D49949 llvm-svn: 338177
22 lines
317 B
C++
22 lines
317 B
C++
class Foo
|
|
{
|
|
public:
|
|
int Bar(int x, int y)
|
|
{
|
|
return x + y;
|
|
}
|
|
};
|
|
|
|
struct Container { int MemberVar; };
|
|
|
|
int main()
|
|
{
|
|
Foo fooo;
|
|
Foo *ptr_fooo = &fooo;
|
|
fooo.Bar(1, 2);
|
|
|
|
Container container;
|
|
Container *ptr_container = &container;
|
|
return container.MemberVar = 3; // Break here
|
|
}
|