diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-28 19:42:10 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-28 19:42:10 +0000 |
commit | c42461e145fb458377e3c4d8892c1348c7dad4e1 (patch) | |
tree | b70cc69ddc8a8977fcba825b048b727d6a361a62 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | ffd628ec0a64e5f4c8bdfa49f87abc61a91b6035 (diff) | |
download | bcm5719-llvm-c42461e145fb458377e3c4d8892c1348c7dad4e1.tar.gz bcm5719-llvm-c42461e145fb458377e3c4d8892c1348c7dad4e1.zip |
Minor refactorin of my last patch (radar 7860965 related).
llvm-svn: 107047
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 5743aa0d71f..96cea87d09b 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/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(), |