Skip to content

Commit c08432f

Browse files
Fix function index bug
1 parent d129f68 commit c08432f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/xray/xray_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ __xray_register_sleds(const XRaySledEntry *SledsBegin,
9595
LastFnAddr = Function;
9696
}
9797
}
98-
98+
SledMap.SledsIndex = nullptr;
9999
SledMap.Functions = CountFunctions;
100100
}
101101
if (SledMap.Functions >= XRayMaxFunctions) {

0 commit comments

Comments
 (0)