Skip to content

Commit

Permalink
Turn vtAssert(false, ...) into vtAbort(...) to avoid issues in no…
Browse files Browse the repository at this point in the history
…n-debug builds
  • Loading branch information
PhilMiller authored Mar 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1692273 commit b19e961
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
@@ -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;
}
}
@@ -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");
}
}

0 comments on commit b19e961

Please sign in to comment.