[all-commits] [llvm/llvm-project] 0004fb: [StandardInstrumentations] Ensure non-null module ...
duk via All-commits
all-commits at lists.llvm.org
Tue Oct 1 22:01:35 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0004fba07972eb521b43d4336e6a9eff7e512ff8
https://github.com/llvm/llvm-project/commit/0004fba07972eb521b43d4336e6a9eff7e512ff8
Author: duk <74797529+duk-37 at users.noreply.github.com>
Date: 2024-10-01 (Tue, 01 Oct 2024)
Changed paths:
M llvm/lib/Passes/StandardInstrumentations.cpp
A llvm/test/Other/dump-with-filter.ll
Log Message:
-----------
[StandardInstrumentations] Ensure non-null module pointer when getting display name for IR file (#110779)
Fixes a crash when using `-filter-print-funcs` with
`-ir-dump-directory`. A quick reproducer on trunk (also included as a
test):
```ll
; opt -passes=no-op-function -print-after=no-op-function -filter-print-funcs=nope -ir-dump-directory=somewhere test.ll
define void @test() {
ret void
}
```
[Compiler Explorer](https://godbolt.org/z/sPErz44h4)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list