diff --git a/go/ir/exits.go b/go/ir/exits.go index 03aa2866..43d46b74 100644 --- a/go/ir/exits.go +++ b/go/ir/exits.go @@ -19,6 +19,13 @@ func (b *builder) buildExits(fn *Function) { fn.NoReturn = AlwaysUnwinds return } + case "github.com/rs/zerolog": + switch obj.(*types.Func).FullName() { + case "(*github.com/rs/zerolog.Logger).Fatal": + fn.NoReturn = AlwaysExits + case "(*github.com/rs/zerolog.Logger).Panic": + fn.NoReturn = AlwaysUnwinds + } case "go.uber.org/zap": switch obj.(*types.Func).FullName() { case "(*go.uber.org/zap.Logger).Fatal",