summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-04-22 14:56:30 +0000
committerRenato Golin <renato.golin@linaro.org>2016-04-22 14:56:30 +0000
commite48f7e6f2d89a7d55ee588ef0aea5e6e772baaad (patch)
treeb5d3ec925a33b84a1a0c06c33dcba1c428cc7b46 /compiler-rt/lib/sanitizer_common
parent9fe26e6dc90ce203f3be0a8ee0abf400668bde13 (diff)
downloadbcm5719-llvm-e48f7e6f2d89a7d55ee588ef0aea5e6e772baaad.tar.gz
bcm5719-llvm-e48f7e6f2d89a7d55ee588ef0aea5e6e772baaad.zip
Revert "[LSAN] Fix test swapcontext.cc on MIPS"
This reverts commit r266716, as it breaks the self-hosting on Thumb2 buildbot. llvm-svn: 267158
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc5
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc
index bf5456fc277..3c8142f3ec5 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc
@@ -40,6 +40,11 @@ void BufferedStackTrace::Init(const uptr *pcs, uptr cnt, uptr extra_top_pc) {
top_frame_bp = 0;
}
+// Check if given pointer points into allocated stack area.
+static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) {
+ return frame > stack_bottom && frame < stack_top - 2 * sizeof (uhwptr);
+}
+
// In GCC on ARM bp points to saved lr, not fp, so we should check the next
// cell in stack to be a saved frame pointer. GetCanonicFrame returns the
// pointer to saved frame pointer in any case.
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
index 90142dffd5e..969cedb165c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
@@ -110,11 +110,6 @@ struct BufferedStackTrace : public StackTrace {
void operator=(const BufferedStackTrace &);
};
-// Check if given pointer points into allocated stack area.
-static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) {
- return frame > stack_bottom && frame < stack_top - 2 * sizeof (uhwptr);
-}
-
} // namespace __sanitizer
// Use this macro if you want to print stack trace with the caller
OpenPOWER on IntegriCloud