mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin, compiler: replace isnil(x) calls with x == unsafe { nil } (a little faster without -prod) (#15759)
This commit is contained in:
@@ -96,7 +96,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
|
||||
cmd := 'addr2line -e $executable $addr'
|
||||
// taken from os, to avoid depending on the os module inside builtin.v
|
||||
f := C.popen(&char(cmd.str), c'r')
|
||||
if isnil(f) {
|
||||
if f == unsafe { nil } {
|
||||
eprintln(sframe)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user