summaryrefslogtreecommitdiff
path: root/libutils/StrongPointer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libutils/StrongPointer.cpp')
-rw-r--r--libutils/StrongPointer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libutils/StrongPointer.cpp b/libutils/StrongPointer.cpp
index ba52502ec..ef467238a 100644
--- a/libutils/StrongPointer.cpp
+++ b/libutils/StrongPointer.cpp
@@ -21,4 +21,7 @@
namespace android {
void sp_report_race() { LOG_ALWAYS_FATAL("sp<> assignment detected data race"); }
+
+void sp_report_stack_pointer() { LOG_ALWAYS_FATAL("sp<> constructed with stack pointer argument"); }
+
}