summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_win.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-12 12:40:47 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-12 12:40:47 +0000
commit3e0b8ff07e86e0858e016d187d842e97aea2255d (patch)
tree200ca911ae89c5b7d544a15cd276ce4904f4a42b /lib/sanitizer_common/sanitizer_win.cc
parent80175018541984bdcfe6a304bb189bd30592fa8a (diff)
downloadcompiler-rt-3e0b8ff07e86e0858e016d187d842e97aea2255d.tar.gz
compiler-rt-3e0b8ff07e86e0858e016d187d842e97aea2255d.tar.bz2
compiler-rt-3e0b8ff07e86e0858e016d187d842e97aea2255d.tar.xz
[Sanitizer] Remove StackTrace::max_depth field
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_win.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_win.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_win.cc b/lib/sanitizer_common/sanitizer_win.cc
index f42e92f1..77e62180 100644
--- a/lib/sanitizer_common/sanitizer_win.cc
+++ b/lib/sanitizer_common/sanitizer_win.cc
@@ -381,13 +381,12 @@ void StackTrace::Unwind(uptr max_depth, uptr pc, uptr bp, uptr stack_top,
(void)fast;
(void)stack_top;
(void)stack_bottom;
- max_size = max_depth;
void *tmp[kStackTraceMax];
// FIXME: CaptureStackBackTrace might be too slow for us.
// FIXME: Compare with StackWalk64.
// FIXME: Look at LLVMUnhandledExceptionFilter in Signals.inc
- uptr cs_ret = CaptureStackBackTrace(1, max_size, tmp, 0);
+ uptr cs_ret = CaptureStackBackTrace(1, max_depth, tmp, 0);
uptr offset = 0;
// Skip the RTL frames by searching for the PC in the stacktrace.
// FIXME: this doesn't work well for the malloc/free stacks yet.