From 40c59bc3038f6f2c189b37973fd12dccb668178a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= Date: Wed, 19 Apr 2023 12:01:24 +0200 Subject: [PATCH] Remove dead code in FirstPCAfterPrologue function --- pkg/proc/bininfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proc/bininfo.go b/pkg/proc/bininfo.go index cae8ae045a..a5c4afb316 100644 --- a/pkg/proc/bininfo.go +++ b/pkg/proc/bininfo.go @@ -377,7 +377,7 @@ func FirstPCAfterPrologue(p Process, fn *Function, sameline bool) (uint64, error } pc, _, line, ok := fn.cu.lineInfo.PrologueEndPC(fn.Entry, fn.End) - if ok && false { + if ok { if !sameline { return pc, nil }