diff options
Diffstat (limited to 'lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp')
-rw-r--r-- | lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp b/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp index a817bade941..2bccf330382 100644 --- a/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp +++ b/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp @@ -23,7 +23,8 @@ public: doSomething (A &anotherA) { printf ("In A %p doing something with %d.\n", this, m_a_value); - printf ("Also have another A at %p: %d.\n", &anotherA, anotherA.Value()); // Break here in doSomething. + int tmp_value = anotherA.Value(); + printf ("Also have another A at %p: %d.\n", &anotherA, tmp_value); // Break here in doSomething. } int |