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 | ef160b4a5a498e48ef8e5ccdabfe29aa4c73e0a1 (patch) | |
tree | 5267f0c1cb5c7d9eb3ab6653e1f8b936a2dbaf6e /lib/CodeGen/CGBlocks.cpp | |
parent | 16ac5ce5fd7d9b4dd67ca8d57403c8f45e3dcf2d (diff) |
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
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(), |