[cfe-commits] r68870 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp
Fariborz Jahanian
fjahanian at apple.com
Sat Apr 11 11:54:58 PDT 2009
Author: fjahanian
Date: Sat Apr 11 13:54:57 2009
New Revision: 68870
URL: http://llvm.org/viewvc/llvm-project?rev=68870&view=rev
Log:
Minor refactoring of my last patch.
Modified:
cfe/trunk/lib/CodeGen/CGBlocks.cpp
Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=68870&r1=68869&r2=68870&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Sat Apr 11 13:54:57 2009
@@ -626,8 +626,8 @@
const FunctionType *BlockFunctionType = BExpr->getFunctionType();
QualType ResultType;
bool IsVariadic;
- if (!isa<FunctionNoProtoType>(BlockFunctionType)) {
- const FunctionProtoType *FTy = cast<FunctionProtoType>(BlockFunctionType);
+ if (const FunctionProtoType *FTy =
+ dyn_cast<FunctionProtoType>(BlockFunctionType)) {
ResultType = FTy->getResultType();
IsVariadic = FTy->isVariadic();
}
More information about the cfe-commits
mailing list