1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Fix llvm-test-suite failure introduced by D82550/D83122

Apparently, isIndirectCall does not imply that getCalledFunction will be non-null
This commit is contained in:
Sanne Wouda 2020-07-13 16:09:41 +01:00
parent 674dcb3af4
commit 7ff41afc34

View File

@ -224,7 +224,7 @@ class VFDatabase {
/// a vector Function ABI.
static void getVFABIMappings(const CallInst &CI,
SmallVectorImpl<VFInfo> &Mappings) {
if (CI.isIndirectCall())
if (!CI.getCalledFunction())
return;
const StringRef ScalarName = CI.getCalledFunction()->getName();