[PATCH] D38204: [TargetTransformInfo] Check if function pointer is valid before calling isLoweredToCall

Chad Rosier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 07:59:59 PDT 2017


mcrosier added a comment.

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.


https://reviews.llvm.org/D38204





More information about the llvm-commits mailing list