[compiler-rt] Revert "Speculative fix for asan/TestCases/Darwin/cstring_section.c" (PR #105600)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 17:47:23 PDT 2024


https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/105600

This fix is not enough, and the breaking patch was reverted with 2704b804bec50c2b016bf678bd534c330ec655b6.

This reverts commit bf71c64839c0082e761a4f070ed92e01ced0187c.


>From ad8803be2f5dfd68cabd1a334f9ff9b10eaf58f4 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Wed, 21 Aug 2024 17:47:08 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.4
---
 compiler-rt/test/asan/TestCases/Darwin/cstring_section.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/test/asan/TestCases/Darwin/cstring_section.c b/compiler-rt/test/asan/TestCases/Darwin/cstring_section.c
index e40c4b1b8ed6ba..d72b0ba8a8bb33 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/cstring_section.c
+++ b/compiler-rt/test/asan/TestCases/Darwin/cstring_section.c
@@ -6,10 +6,10 @@
 // Check that "Hello.\n" is in __asan_cstring and not in __cstring.
 // CHECK: Contents of section {{.*}}__asan_cstring:
 // CHECK: 48656c6c {{.*}} Hello.
-// CHECK: Contents of section {{.*}}__cstring:
-// CHECK-NOT: 48656c6c {{.*}} Hello.
 // CHECK: Contents of section {{.*}}__const:
 // CHECK-NOT: 48656c6c {{.*}} Hello.
+// CHECK: Contents of section {{.*}}__cstring:
+// CHECK-NOT: 48656c6c {{.*}} Hello.
 
 int main(int argc, char *argv[]) {
   argv[0] = "Hello.\n";



More information about the llvm-commits mailing list