[compiler-rt] b4618f5 - [NFC][sanitizer] Remove unused variable

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 15:24:54 PST 2021


Author: Vitaly Buka
Date: 2021-12-16T15:24:45-08:00
New Revision: b4618f576eb3661116fc71e5cbe67b2e09320f8c

URL: https://github.com/llvm/llvm-project/commit/b4618f576eb3661116fc71e5cbe67b2e09320f8c
DIFF: https://github.com/llvm/llvm-project/commit/b4618f576eb3661116fc71e5cbe67b2e09320f8c.diff

LOG: [NFC][sanitizer] Remove unused variable

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp
index 53911e11e5789..07a3192c0474d 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cpp
@@ -104,7 +104,6 @@ void AdvancedIncrementerThread(AdvancedCallbackArgument &callback_argument) {
   uptr this_thread_index =
       __sync_fetch_and_add(&callback_argument.thread_index, 1);
   // Spawn the next thread.
-  int pthread_create_result;
   if (this_thread_index + 1 < kThreadCount) {
     try {
       callback_argument.threads[this_thread_index + 1] =


        


More information about the llvm-commits mailing list