diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-03 23:46:12 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-03 23:46:12 +0000 |
| commit | 2428359e23fe32fb6ca284f7d29ecbb641ddf79a (patch) | |
| tree | b9fa4ec87fc2d93e34943d80679f4dacf9885c89 | |
| parent | fb4308ed9a9d4276db7a7355536050479b2c8a3e (diff) | |
| download | bcm5719-llvm-2428359e23fe32fb6ca284f7d29ecbb641ddf79a.tar.gz bcm5719-llvm-2428359e23fe32fb6ca284f7d29ecbb641ddf79a.zip | |
Fixup test case after r217079
llvm-svn: 217111
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc index b71044a6162..cfd6ee599a6 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc @@ -46,8 +46,8 @@ void FastUnwindTest::SetUp() { fake_stack[i] = (uptr)&fake_stack[i+2]; // fp fake_stack[i+1] = PC(i + 1); // retaddr } - // Mark the last fp as zero to terminate the stack trace. - fake_stack[RoundDownTo(ARRAY_SIZE(fake_stack) - 1, 2)] = 0; + // Mark the last fp point back up to terminate the stack trace. + fake_stack[RoundDownTo(ARRAY_SIZE(fake_stack) - 1, 2)] = (uptr)&fake_stack[0]; // Top is two slots past the end because FastUnwindStack subtracts two. fake_top = (uptr)&fake_stack[ARRAY_SIZE(fake_stack) + 2]; |

