// Fix up function declarations that were created for cpu_specific before
// cpu_dispatch was known
- if (!dyn_cast<llvm::GlobalIFunc>(IFunc)) {
+ if (!isa<llvm::GlobalIFunc>(IFunc)) {
assert(cast<llvm::Function>(IFunc)->isDeclaration());
auto *GI = llvm::GlobalIFunc::create(DeclTy, 0, Linkage, "", ResolverFunc,
&getModule());
UpdateStmt = S1;
CondUpdateStmt = S2;
// Check if form 45.
- if (dyn_cast<BinaryOperator>(BO->getRHS()->IgnoreImpCasts()) &&
- dyn_cast<IfStmt>(S2))
+ if (isa<BinaryOperator>(BO->getRHS()->IgnoreImpCasts()) &&
+ isa<IfStmt>(S2))
return checkForm45(CS, ErrorInfo);
// It cannot be set before we the check for form45.
IsPostfixUpdate = true;