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:
parent
674dcb3af4
commit
7ff41afc34
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user