Skip to content

Commit 225f6dd

Browse files
authored
[ctxprof][nfc] Remove redundant SANITIZER_NO_THREAD_SAFETY_ANALYSIS (#133784)
With the refactoring in PR #133744, `__llvm_ctx_profile_start_context` doesn't need to be marked `SANITIZER_NO_THREAD_SAFETY_ANALYSIS` because `tryStartContextGivenRoot` (where the bulk of the logic went) is.
1 parent 616f447 commit 225f6dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ ContextNode *__llvm_ctx_profile_get_context(FunctionData *Data, void *Callee,
385385
return Ret;
386386
}
387387

388-
ContextNode *__llvm_ctx_profile_start_context(
389-
FunctionData *FData, GUID Guid, uint32_t Counters,
390-
uint32_t Callsites) SANITIZER_NO_THREAD_SAFETY_ANALYSIS {
388+
ContextNode *__llvm_ctx_profile_start_context(FunctionData *FData, GUID Guid,
389+
uint32_t Counters,
390+
uint32_t Callsites) {
391391
return tryStartContextGivenRoot(FData->getOrAllocateContextRoot(), Guid,
392392
Counters, Callsites);
393393
}

0 commit comments

Comments
 (0)