-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[StandardInstrumentations] Ensure non-null module pointer when getting display name for IR file #110779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…g display name for IR file Fixes a crash when using -filter-print-funcs with -ir-dump-directory.
2e3fe7c
to
2c8c0d3
Compare
@@ -0,0 +1,14 @@ | |||
;; Make sure we can run -filter-print-funcs with -ir-dump-directory. | |||
; RUN: rm -rf %t/logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to mkdir %t/logs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's automatically generated by -ir-dump-directory
, so I don't think so.
FYI I don't have commit access for the time being, so if this looks good it'd be great if you could merge it in @aeubanks :) |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/4788 Here is the relevant piece of the build log for the reference
|
…g display name for IR file (llvm#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)
Fixes a crash when using
-filter-print-funcs
with-ir-dump-directory
. A quick reproducer on trunk (also included as a test):Compiler Explorer