]> granicus.if.org Git - clang/commitdiff
Minor refactorin of my last patch (radar 7860965 related).
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 28 Jun 2010 19:42:10 +0000 (19:42 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 28 Jun 2010 19:42:10 +0000 (19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107047 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index 5743aa0d71f7014e41e3372bc43653ca9ce88c9b..96cea87d09ba54641ee95fb1c8f07653099cdaef 100644 (file)
@@ -841,7 +841,7 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, const BlockExpr *BExpr,
   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(),