From 6cb91f9bb8ec78be4cf26c2f93da8e705466692b Mon Sep 17 00:00:00 2001 From: Andy Ragusa Date: Tue, 9 Apr 2024 09:45:27 -0700 Subject: [PATCH] blah --- libclambcc/ClamBCUtilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclambcc/ClamBCUtilities.cpp b/libclambcc/ClamBCUtilities.cpp index f94c5c5810..8f9f7b58ec 100644 --- a/libclambcc/ClamBCUtilities.cpp +++ b/libclambcc/ClamBCUtilities.cpp @@ -288,7 +288,7 @@ void gatherCallsToIntrinsic(Function *pFunc, const char *const functionName, std for (auto bi = pBB->begin(), be = pBB->end(); bi != be; bi++) { if (CallInst *pci = llvm::dyn_cast(bi)) { Function *pCalled = pci->getCalledFunction(); - if (pCalled->isIntrinsic()) { + if (pCalled && pCalled->isIntrinsic()) { if (functionName == pCalled->getName()) { calls.push_back(pci); }