From a06342d250ec7bee37dc93477f233e43e597aca5 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 12 Dec 2022 09:27:48 +0100 Subject: [PATCH] [lldb] Modify TestThreadJump to work around a change in clang's debug_line generation After D133376, jumping to the return line in the otherfn function became ambiguous because it has two line entries associated with it. Work around that problem by changing the function. Filed PR59458 to track possible improvements in jump target disambiguation. --- lldb/test/API/functionalities/thread/jump/other.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/test/API/functionalities/thread/jump/other.cpp b/lldb/test/API/functionalities/thread/jump/other.cpp index 741f13bbd522..c44786f721d5 100644 --- a/lldb/test/API/functionalities/thread/jump/other.cpp +++ b/lldb/test/API/functionalities/thread/jump/other.cpp @@ -1,4 +1,4 @@ -int otherfn() -{ - return 4; // other marker +int otherfn() { + int x = 4; // other marker + return x; } -- 2.34.1