[cfe-commits] r107047 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp

Fariborz Jahanian fjahanian at apple.com
Mon Jun 28 12:42:10 PDT 2010


Author: fjahanian
Date: Mon Jun 28 14:42:10 2010
New Revision: 107047

URL: http://llvm.org/viewvc/llvm-project?rev=107047&view=rev
Log:
Minor refactorin of my last patch (radar 7860965 related).

Modified:
    cfe/trunk/lib/CodeGen/CGBlocks.cpp

Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=107047&r1=107046&r2=107047&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Mon Jun 28 14:42:10 2010
@@ -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(),





More information about the cfe-commits mailing list