0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::magic: Minor additional branch expect labels.

This commit is contained in:
Jason Volk 2021-09-05 13:14:12 -07:00
parent a82e7bf280
commit e6e6191e3e
2 changed files with 3 additions and 3 deletions

View file

@ -194,7 +194,7 @@ void
ircd::magic::set_flags(const magic_t &cookie,
const int &flags)
{
if(magic_setflags(cookie, flags) == -1)
if(unlikely(magic_setflags(cookie, flags) == -1))
throw_on_error(cookie);
}
@ -206,7 +206,7 @@ ircd::magic::throw_on_error(const magic_t &cookie)
::magic_error(cookie)
};
if(errstr)
if(unlikely(errstr))
throw error
{
"%s", errstr

View file

@ -562,7 +562,7 @@ void
ircd::magick::callpf(function&& f,
args&&... a)
{
if(!call<MagickPassFail>(f, std::forward<args>(a)...))
if(unlikely(!call<MagickPassFail>(f, std::forward<args>(a)...)))
throw error{};
}