diff options
Diffstat (limited to 'llvm/lib/IR/Instructions.cpp')
| -rw-r--r-- | llvm/lib/IR/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 9fe79366f9b2..b8963823f1c6 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -355,7 +355,7 @@ bool CallBase::isTailCall() const { } Intrinsic::ID CallBase::getIntrinsicID() const { - if (auto *F = getCalledFunction()) + if (auto *F = dyn_cast_or_null<Function>(getCalledOperand())) return F->getIntrinsicID(); return Intrinsic::not_intrinsic; } |
