diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index d127ea0945f2..9912f59f0ba6 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/tools/bugpoint/CrashDebugger.cpp @@ -270,7 +270,7 @@ bool ReduceCrashingFunctions::TestFuncs(std::vector &Funcs) { // First, remove aliases to functions we're about to purge. for (GlobalAlias &Alias : M->aliases()) { GlobalObject *Root = Alias.getAliaseeObject(); - Function *F = dyn_cast_or_null(Root); + auto *F = dyn_cast(Root); if (F) { if (Functions.count(F)) // We're keeping this function. @@ -278,7 +278,7 @@ bool ReduceCrashingFunctions::TestFuncs(std::vector &Funcs) { } else if (Root->isNullValue()) { // This referenced a globalalias that we've already replaced, // so we still need to replace this alias. - } else if (!F) { + } else { // Not a function, therefore not something we mess with. continue; }