[cfe-commits] r68532 - /cfe/trunk/lib/CodeGen/CGExpr.cpp
Anders Carlsson
andersca at mac.com
Tue Apr 7 11:53:02 PDT 2009
Author: andersca
Date: Tue Apr 7 13:53:02 2009
New Revision: 68532
URL: http://llvm.org/viewvc/llvm-project?rev=68532&view=rev
Log:
Remove some dead code.
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=68532&r1=68531&r2=68532&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Tue Apr 7 13:53:02 2009
@@ -1204,15 +1204,11 @@
const Decl *TargetDecl) {
// Get the actual function type. The callee type will always be a
// pointer to function type or a block pointer type.
- QualType ResultType;
- if (const BlockPointerType *BPT = dyn_cast<BlockPointerType>(CalleeType)) {
- ResultType = BPT->getPointeeType()->getAsFunctionType()->getResultType();
- } else {
- assert(CalleeType->isFunctionPointerType() &&
- "Call must have function pointer type!");
- QualType FnType = CalleeType->getAsPointerType()->getPointeeType();
- ResultType = FnType->getAsFunctionType()->getResultType();
- }
+ assert(CalleeType->isFunctionPointerType() &&
+ "Call must have function pointer type!");
+
+ QualType FnType = CalleeType->getAsPointerType()->getPointeeType();
+ QualType ResultType = FnType->getAsFunctionType()->getResultType();
CallArgList Args;
for (CallExpr::const_arg_iterator I = ArgBeg; I != ArgEnd; ++I)
More information about the cfe-commits
mailing list