Skip to content

Commit

Permalink
Check if Function has a name
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Sep 26, 2024
1 parent b770437 commit 0c4cd6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LLVMParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ bool LLVMParser::isSupportedInstruction(llvm::Value *V) {
if (isa<CallInst>(V)) {
// check if intrinsic
auto CI = dyn_cast<CallInst>(V);
if (this->IsExternalSimplifier == false &&
if (this->IsExternalSimplifier == false && CI->hasName() &&
CI->getCalledFunction()->getName().starts_with("llvm.fshl.")) {
return true;
}
Expand Down

0 comments on commit 0c4cd6f

Please sign in to comment.