forked from OSchip/llvm-project
Fix "pointer is null" static analyzer warning. NFCI.
Use cast<> instead of dyn_cast<> since we know that the pointer should be valid (and is dereferenced immediately below in the getSignature call).
This commit is contained in:
parent
5936717fa6
commit
19bfb6d8df
|
@ -453,7 +453,7 @@ Function *WebAssemblyLowerEmscriptenEHSjLj::getInvokeWrapper(CallOrInvoke *CI) {
|
|||
CalleeFTy = F->getFunctionType();
|
||||
else {
|
||||
auto *CalleeTy = cast<PointerType>(Callee->getType())->getElementType();
|
||||
CalleeFTy = dyn_cast<FunctionType>(CalleeTy);
|
||||
CalleeFTy = cast<FunctionType>(CalleeTy);
|
||||
}
|
||||
|
||||
std::string Sig = getSignature(CalleeFTy);
|
||||
|
|
Loading…
Reference in New Issue