summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/ubsan/ubsan_diag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_diag.h b/compiler-rt/lib/ubsan/ubsan_diag.h
index 0336951900a..247ecddb912 100644
--- a/compiler-rt/lib/ubsan/ubsan_diag.h
+++ b/compiler-rt/lib/ubsan/ubsan_diag.h
@@ -208,6 +208,7 @@ void MaybePrintStackTrace(uptr pc, uptr bp);
#define MAYBE_PRINT_STACK_TRACE() do { \
GET_CALLER_PC_BP_SP; \
+ (void)sp; \
MaybePrintStackTrace(pc, bp); \
} while (0)
OpenPOWER on IntegriCloud