llvm/llvm-project
GitHub で見る[MIRSampleProfile] nullptr deref crash when profile sample use file not found
Open
#189,764 opened on 2026年3月31日
PGOcrash-on-invalidgood first issuellvm:codegen
Repository metrics
- Stars
- (26,378 stars)
- PR merge metrics
- (平均マージ 1d 2h) (30d で 1,000 merged PRs)
説明
Trying to reproduce https://github.com/llvm/llvm-project/issues/188897, I failed to pass a valid file for -fprofile-sample-use=; this caused a crash because Reader is nullptr in MIRProfileLoader::runOnFunction. Should be easy to guard against this I think. cc @htyu (author of 958a3d8e2dec95a878dfc9d823861b3a6c674534)