llvm-project
71d10590 - [CaptureTracking][NFC] Clarify usage expectations in PointerMayBeCaptured comments (#132744)

Commit
1 year ago
[CaptureTracking][NFC] Clarify usage expectations in PointerMayBeCaptured comments (#132744) Fixes issue #132739. CaptureAnalysis only considers captures through the def-use chain of the provided pointer, explicitly excluding captures of underlying values or implicit captures like those involving external globals. The previous comment for `PointerMayBeCaptured` did not clearly state this limitation, leading to its incorrect usage in files such as ThreadSanitizer.cpp and SanitizerMetadata.cpp. This PR addresses this by refining the comments for the relevant APIs within `PointerMayBeCaptured` to explicitly document this behavior.
Author
Parents
Loading