Skip to content

Commit

Permalink
#276: Turn vtAssert(false, ...) into vtAbort(...) to avoid issues…
Browse files Browse the repository at this point in the history
… in non-debug builds
  • Loading branch information
PhilMiller committed Mar 10, 2023
1 parent cc0c1fc commit bead248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/registry/auto/auto_registry_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct MapsDispatcher final : BaseMapsDispatcher {
num_nodes
);
} else {
vtAssert(false, "Invalid function type for map handler");
vtAbort("Invalid function type for map handler");
return uninitialized_destination;
}
}
Expand All @@ -153,7 +153,7 @@ struct ScatterDispatcher final : BaseScatterDispatcher {
if constexpr (std::is_same_v<T, ActiveTypedFnType<MsgT>*>) {
fp(static_cast<MsgT*>(msg));
} else {
vtAssert(false, "Invalid function type for scatter handler");
vtAbort("Invalid function type for scatter handler");
}
}

Expand Down

0 comments on commit bead248

Please sign in to comment.