<div dir="ltr">I guess this bot <a href="https://lab.llvm.org/buildbot/#/builders/77/builds/10821">https://lab.llvm.org/buildbot/#/builders/77/builds/10821</a> is broken by that patch<div>main() is gone from the trace<br><div><br></div><div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">******************** TEST 'AddressSanitizer-arm-android :: TestCases/use-after-scope-types.cpp' FAILED ********************</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">Script:</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">--</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 1'; /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -stdlib=libc++ -fuse-ld=lld -shared-libasan -O0 -fsanitize-address-use-after-scope /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 2'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 0 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 3'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 1 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 4'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 2 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 5'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 3 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 6'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 4 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 7'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 5 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 8'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 6 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 9'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 7 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 10'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 8 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 11'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 9 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">: 'RUN: at line 12'; not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 10 2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">--</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">Exit Code: 1</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">Command Output (stderr):</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">--</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">+ : 'RUN: at line 1'</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -stdlib=libc++ -fuse-ld=lld -shared-libasan -O0 -fsanitize-address-use-after-scope /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">+ : 'RUN: at line 2'</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">+ not /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp 0</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">+ FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp:44:12: error: CHECK: expected string not found in input</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> // CHECK: #{{[0-9]+}} 0x{{.*}} in {{(void )?test.*\((void)?\) .*}}use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> ^</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"><stdin>:2:55: note: scanning from here</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">==2843==ERROR: AddressSanitizer: stack-use-after-scope on address 0xff8d5de0 at pc 0x02f53dec bp 0xff8d5d98 sp 0xff8d5d94</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> ^</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"><stdin>:4:107: note: possible intended match here</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> #0 0x2f53de8 in Ptr<bool>::Access() /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp:21:22</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> ^</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">Input file: <stdin></span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">Check file: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">-dump-input=help explains the following input dump.</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">Input was:</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"><<<<<<</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 1: ================================================================= </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 2: ==2843==ERROR: AddressSanitizer: stack-use-after-scope on address 0xff8d5de0 at pc 0x02f53dec bp 0xff8d5d98 sp 0xff8d5d94 </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 3: WRITE of size 1 at 0xff8d5de0 thread T0 </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 4: #0 0x2f53de8 in Ptr<bool>::Access() /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/use-after-scope-types.cpp:21:22 </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'1 ? possible intended match</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 5: #1 0x2f52a4c (/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp+0x3a4c) </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 6: #2 0x2f52860 (/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Output/use-after-scope-types.cpp.tmp+0x3860) </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 7: #3 0xf0eff3f0 in __libc_init (/apex/com.android.runtime/lib/bionic/libc.so+0x323f0) </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 8: </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 ~</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> 9: Address 0xff8d5de0 is located in stack of thread T0 at offset 32 in frame </span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">check:44'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> .</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> .</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box"> .</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">>>>>>></span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">--</span></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"></span></div><div style="box-sizing:border-box;height:18px;color:rgb(199,199,199);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;white-space:pre;background-color:rgb(0,0,0)"><span class="gmail-no-wrap gmail-log_o gmail-ng-binding" style="box-sizing:border-box"><span class="gmail-" style="box-sizing:border-box">********************</span></span></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 25 Oct 2021 at 11:55, Fangrui Song via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Author: Fangrui Song<br>
Date: 2021-10-25T11:55:31-07:00<br>
New Revision: 4ae1c2c6f1b3a0085a0fb0909005e62da156e051<br>
<br>
URL: <a href="https://github.com/llvm/llvm-project/commit/4ae1c2c6f1b3a0085a0fb0909005e62da156e051" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/4ae1c2c6f1b3a0085a0fb0909005e62da156e051</a><br>
DIFF: <a href="https://github.com/llvm/llvm-project/commit/4ae1c2c6f1b3a0085a0fb0909005e62da156e051.diff" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/4ae1c2c6f1b3a0085a0fb0909005e62da156e051.diff</a><br>
<br>
LOG: [ELF] Delete unneeded hack for discarding empty name local symbol<br>
<br>
This actually improves GNU ld compatibility.<br>
Correct assemblers don't create such symbols.<br>
<br>
Also simplify the code.<br>
<br>
Added: <br>
<br>
<br>
Modified: <br>
lld/ELF/Writer.cpp<br>
<br>
Removed: <br>
lld/test/ELF/Inputs/discard-merge-unnamed.o<br>
lld/test/ELF/discard-merge-unnamed.s<br>
<br>
<br>
################################################################################<br>
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp<br>
index 3e2e9a528353e..c9b613d82547e 100644<br>
--- a/lld/ELF/Writer.cpp<br>
+++ b/lld/ELF/Writer.cpp<br>
@@ -727,16 +727,11 @@ static bool shouldKeepInSymtab(const Defined &sym) {<br>
// * --discard-locals is used.<br>
// * The symbol is in a SHF_MERGE section, which is normally the reason for<br>
// the assembler keeping the .L symbol.<br>
- StringRef name = sym.getName();<br>
- bool isLocal = name.startswith(".L") || name.empty();<br>
- if (!isLocal)<br>
- return true;<br>
-<br>
- if (config->discard == DiscardPolicy::Locals)<br>
+ if (sym.getName().startswith(".L") &&<br>
+ (config->discard == DiscardPolicy::Locals ||<br>
+ (sym.section && (sym.section->flags & SHF_MERGE))))<br>
return false;<br>
-<br>
- SectionBase *sec = sym.section;<br>
- return !sec || !(sec->flags & SHF_MERGE);<br>
+ return true;<br>
}<br>
<br>
static bool includeInSymtab(const Symbol &b) {<br>
<br>
diff --git a/lld/test/ELF/Inputs/discard-merge-unnamed.o b/lld/test/ELF/Inputs/discard-merge-unnamed.o<br>
deleted file mode 100644<br>
index 040addf04f4ec..0000000000000<br>
Binary files a/lld/test/ELF/Inputs/discard-merge-unnamed.o and /dev/null <br>
diff er<br>
<br>
diff --git a/lld/test/ELF/discard-merge-unnamed.s b/lld/test/ELF/discard-merge-unnamed.s<br>
deleted file mode 100644<br>
index 2bd38737081b5..0000000000000<br>
--- a/lld/test/ELF/discard-merge-unnamed.s<br>
+++ /dev/null<br>
@@ -1,27 +0,0 @@<br>
-// RUN: ld.lld %p/Inputs/discard-merge-unnamed.o -o %t2 -shared<br>
-// RUN: llvm-readobj --symbols %t2 | FileCheck %s<br>
-<br>
-// Test that the unnamed symbol is SHF_MERGE is omitted.<br>
-<br>
-// CHECK: Symbols [<br>
-// CHECK-NEXT: Symbol {<br>
-// CHECK-NEXT: Name: (0)<br>
-// CHECK-NEXT: Value: 0x0<br>
-// CHECK-NEXT: Size: 0<br>
-// CHECK-NEXT: Binding: Local<br>
-// CHECK-NEXT: Type: None<br>
-// CHECK-NEXT: Other: 0<br>
-// CHECK-NEXT: Section: Undefined<br>
-// CHECK-NEXT: }<br>
-// CHECK-NEXT: Symbol {<br>
-// CHECK-NEXT: Name: _DYNAMIC<br>
-// CHECK-NEXT: Value:<br>
-// CHECK-NEXT: Size: 0<br>
-// CHECK-NEXT: Binding: Local<br>
-// CHECK-NEXT: Type: None<br>
-// CHECK-NEXT: Other [ (0x2)<br>
-// CHECK-NEXT: STV_HIDDEN<br>
-// CHECK-NEXT: ]<br>
-// CHECK-NEXT: Section: .dynamic<br>
-// CHECK-NEXT: }<br>
-// CHECK-NEXT: ]<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>