summaryrefslogtreecommitdiff
path: root/retrace
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2012-11-21 21:02:21 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2012-11-22 10:57:13 +0000
commit529cf9b67e67bdd4cad619e1e9347134375d649d (patch)
treeb96dd1ae189f18d7530a5a3f43f3f82f9152e96a /retrace
parent8ce19e45daef88e84728189d7671233ef472ae03 (diff)
retrace: Just warn in face of an unexpected non-null object.
Diffstat (limited to 'retrace')
-rw-r--r--retrace/retrace_swizzle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/retrace/retrace_swizzle.cpp b/retrace/retrace_swizzle.cpp
index b487de18..2045f6bb 100644
--- a/retrace/retrace_swizzle.cpp
+++ b/retrace/retrace_swizzle.cpp
@@ -259,7 +259,9 @@ addObj(trace::Call &call, trace::Value &value, void *obj) {
unsigned long long address = value.toUIntPtr();
if (!address) {
- assert(!obj);
+ if (obj) {
+ warning(call) << "unexpected non-null object\n";
+ }
return;
}