From ef160b4a5a498e48ef8e5ccdabfe29aa4c73e0a1 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 28 Jun 2010 19:42:10 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGBlocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 5743aa0d71..96cea87d09 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -841,7 +841,7 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, const BlockExpr *BExpr, CGM.SetInternalFunctionAttributes(BD, Fn, FI); QualType FnType(BlockFunctionType, 0); - bool HasPrototype = (dyn_cast(BlockFunctionType) != 0); + bool HasPrototype = isa(BlockFunctionType); IdentifierInfo *ID = &getContext().Idents.get(Name.getString()); CurCodeDecl = FunctionDecl::Create(getContext(), -- 2.40.0