Skip to content

Commit c3c037b

Browse files
Update compiler-rt/lib/profile/InstrProfilingUtil.c
Co-authored-by: Hubert Tong <[email protected]>
1 parent f764d1e commit c3c037b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/profile/InstrProfilingUtil.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ static int is_local_filesystem(int Fd) {
298298
_Static_assert(sizeof(Vfs.f_fsid) == sizeof(Vp->vmt_fsid),
299299
"fsid length mismatch");
300300
if (memcmp(&Vfs.f_fsid, &Vp->vmt_fsid, sizeof Vfs.f_fsid) == 0) {
301+
int Answer = (Vp->vmt_flags & MNT_REMOTE) == 0;
301302
free(Buf);
302-
return (Vp->vmt_flags & MNT_REMOTE) == 0;
303+
return Answer;
303304
}
304305
CurObjPtr += Vp->vmt_length;
305306
}

0 commit comments

Comments
 (0)