summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-06-28 19:42:10 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-06-28 19:42:10 +0000
commitc42461e145fb458377e3c4d8892c1348c7dad4e1 (patch)
treeb70cc69ddc8a8977fcba825b048b727d6a361a62
parentffd628ec0a64e5f4c8bdfa49f87abc61a91b6035 (diff)
downloadbcm5719-llvm-c42461e145fb458377e3c4d8892c1348c7dad4e1.tar.gz
bcm5719-llvm-c42461e145fb458377e3c4d8892c1348c7dad4e1.zip
Minor refactorin of my last patch (radar 7860965 related).
llvm-svn: 107047
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
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(),
OpenPOWER on IntegriCloud