Function isLoweredToCall can only accept non-null function pointer, but a function pointer can be null for indirect function call. So check it before calling isLoweredToCall from getInstructionLatency.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Would it make sense to also add an assertion in isLoweredToCall asserting that F is non-null?
Also, is this something that can be tested? Something that shows the compiler doesn't segfault would be sufficient.
Comment Actions
Also, please be sure to include full context with your patches. This is generally done with -U git option (e.g., git show HEAD -U999999 > mypatch.patch).