cc: Fix assertion for debug builds
authorSasha Goldshtein <goldshtn@gmail.com>
Fri, 3 Mar 2017 20:13:16 +0000 (15:13 -0500)
committerSasha Goldshtein <goldshtn@gmail.com>
Fri, 3 Mar 2017 20:13:16 +0000 (15:13 -0500)
src/cc/usdt.cc

index bc04906..7d1dd57 100644 (file)
@@ -63,7 +63,7 @@ bool Probe::resolve_global_address(uint64_t *global, const uint64_t addr) {
 }
 
 bool Probe::add_to_semaphore(int16_t val) {
-  assert(pid_ && attached_semaphore_);
+  assert(pid_);
 
   if (!attached_semaphore_) {
     uint64_t addr;