diff --git a/src/vt/messaging/envelope/envelope_ref.impl.h b/src/vt/messaging/envelope/envelope_ref.impl.h index accfc2e0e3..abfb6e3fef 100644 --- a/src/vt/messaging/envelope/envelope_ref.impl.h +++ b/src/vt/messaging/envelope/envelope_ref.impl.h @@ -67,9 +67,7 @@ template inline RefType envelopeDeref(Env& env) { Envelope* envp = reinterpret_cast(&env); - if(not (envp->ref >= 1)){ - vtAbort("Bad ref-count on message ref-decrement."); - } + vtAssert(envp->ref >= 1, "Bad ref-count on message ref-decrement."); return --(envp->ref); }