Remove some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68532 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index e62bf2f..9067787 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -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)