diff options
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<FunctionProtoType>(BlockFunctionType) != 0); + bool HasPrototype = isa<FunctionProtoType>(BlockFunctionType); IdentifierInfo *ID = &getContext().Idents.get(Name.getString()); CurCodeDecl = FunctionDecl::Create(getContext(), |