From c182be211a4d1a79390703ede8f041dcbaaf7947 Mon Sep 17 00:00:00 2001 From: Fred Riss Date: Wed, 18 Mar 2020 19:50:18 -0700 Subject: [PATCH] [lldb/testsuite] Tweak TestBreakpointLocations.py to pass for arm64 The test checks that we correctly set the right number of breakpoints when breaking into an `always_inline` function. The line of this funstion selected for this test was the return statement, but with recent compiler, this return statement doesn't necessarily exist after inlining, even at O0. Switch the breakpoint to a different line of the inline function. --- .../functionalities/breakpoint/breakpoint_locations/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/main.c b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/main.c index 7ec3ded67b74f..f6ccb031c7445 100644 --- a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/main.c +++ b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/main.c @@ -14,9 +14,9 @@ func_inlined (void) { static int func_inline_call_count = 0; printf ("Called func_inlined.\n"); - ++func_inline_call_count; + ++func_inline_call_count; // Set break point at this line. printf ("Returning func_inlined call count: %d.\n", func_inline_call_count); - return func_inline_call_count; // Set break point at this line. + return func_inline_call_count; } extern int func_inlined (void);