Minor refactorin of my last patch (radar 7860965 related).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107047 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 5743aa0..96cea87 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -841,7 +841,7 @@
CGM.SetInternalFunctionAttributes(BD, Fn, FI);
QualType FnType(BlockFunctionType, 0);
- bool HasPrototype = (dyn_cast<FunctionProtoType>(BlockFunctionType) != 0);
+ bool HasPrototype = isa<FunctionProtoType>(BlockFunctionType);
IdentifierInfo *ID = &getContext().Idents.get(Name.getString());
CurCodeDecl = FunctionDecl::Create(getContext(),