[Lldb-commits] [lldb] Revert "[lldb] Fix DW_OP_piece-O3 test on AArch64 Windows" (PR #117354)

Ilia Kuklin via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 22 09:46:16 PST 2024


https://github.com/kuilpd created https://github.com/llvm/llvm-project/pull/117354

Reverts llvm/llvm-project#117336

>From 4348c4d658a56f45e939190aa1b2b6c698893999 Mon Sep 17 00:00:00 2001
From: Ilia Kuklin <kuklin.iy at mail.ru>
Date: Fri, 22 Nov 2024 22:45:42 +0500
Subject: [PATCH] Revert "[lldb] Fix DW_OP_piece-O3 test on AArch64 Windows
 (#117336)"

This reverts commit 720a4c70edd0a9815f0e830d8ad4e1c322e404ae.
---
 lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c b/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c
index 75cd4e6a913b9c..77ea81f30395f0 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c
+++ b/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c
@@ -7,7 +7,7 @@
 
 // RUN: %clang_host -O3 -gdwarf %s -o %t
 // RUN: %lldb %t \
-// RUN:   -o "b done" \
+// RUN:   -o "b 25" \
 // RUN:   -o "r" \
 // RUN:   -o "p/x array[2]" \
 // RUN:   -b | FileCheck %s
@@ -17,10 +17,10 @@
 
 static char array[5] = {0, 1, 2, 3, 4};
 
-int done() __attribute__((noinline));
-int done() { return array[2]; };
+void func() __attribute__((noinline));
+void func() { ++array[2]; };
 
 int main(void) {
-  ++array[2];
-  return done();
+  func();
+  return 0;
 }



More information about the lldb-commits mailing list