llvm
004a3d8d - [SYCL][PostLink] Fix Coverity issues in SYCLPostLink.cpp (#21573)

Commit
4 days ago
[SYCL][PostLink] Fix Coverity issues in SYCLPostLink.cpp (#21573) The below summary is generated by Claud but I followed the human in the middle policy to review each and every step that AI made. ## Summary This PR fixes critical Coverity static analysis issues in `SYCLPostLink.cpp`: ### Issues Fixed 1. **Memory Leak** - Fixed resource leak in `performPostLinkProcessing` - Removed unnecessary `MD.release()` call at line 184 that was leaking `ModuleDesc` pointer - The `unique_ptr` now properly manages memory cleanup automatically ### Changes Made - `lib/SYCLPostLink/SYCLPostLink.cpp`: - Line 183: Removed `MD.release();` that was causing memory leak ## Test Plan - ✅ Built successfully using `python buildbot/compile.py` - ✅ No compilation errors or warnings - ✅ All 3984 build steps completed successfully - ✅ Code properly deployed to toolchain Assisted-by: Claude AI --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Author
Parents
Loading