[compiler-rt] r355371 - [NFC] Put bp into Unwind(.. false) for consistency

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 18:50:57 PST 2019


Author: vitalybuka
Date: Mon Mar  4 18:50:57 2019
New Revision: 355371

URL: http://llvm.org/viewvc/llvm-project?rev=355371&view=rev
Log:
[NFC] Put bp into Unwind(.. false) for consistency

It's not used there anyway

Modified:
    compiler-rt/trunk/lib/asan/asan_stack.cc

Modified: compiler-rt/trunk/lib/asan/asan_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_stack.cc?rev=355371&r1=355370&r2=355371&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_stack.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_stack.cc Mon Mar  4 18:50:57 2019
@@ -35,7 +35,7 @@ void __sanitizer::BufferedStackTrace::Un
   if (UNLIKELY(!asan_inited))
     return;
 #if SANITIZER_WINDOWS
-  Unwind(max_depth, pc, 0, context, 0, 0, false);
+  Unwind(max_depth, pc, bp, context, 0, 0, false);
 #else
   AsanThread *t = GetCurrentThread();
   if (t && !t->isUnwinding()) {
@@ -46,7 +46,7 @@ void __sanitizer::BufferedStackTrace::Un
       if (StackTrace::WillUseFastUnwind(request_fast))
         Unwind(max_depth, pc, bp, nullptr, stack_top, stack_bottom, true);
       else
-        Unwind(max_depth, pc, 0, context, 0, 0, false);
+        Unwind(max_depth, pc, bp, context, 0, 0, false);
     }
   } else if (!t && !request_fast) {
     /* If GetCurrentThread() has failed, try to do slow unwind anyways. */




More information about the llvm-commits mailing list