diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-08-09 17:38:12 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-08-09 17:38:12 +0000 |
commit | c55db3b76df62f2c89e9bcc7437d1065512fb139 (patch) | |
tree | 038b03af51c1fe5b5072c9bebd1d94c71dbf8cee /lib/CodeGen/CGBlocks.cpp | |
parent | 0815b579b31cb3129f732bb7ea36fd6ba6949e98 (diff) |
Cleanup; no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 8edf2eda06..af4f26c427 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -749,11 +749,7 @@ RValue CodeGenFunction::EmitBlockCallExpr(const CallExpr* E, llvm::Value *Func = Builder.CreateLoad(FuncPtr, "tmp"); const FunctionType *FuncTy = FnType->castAs<FunctionType>(); - QualType ResultType = FuncTy->getResultType(); - - const CGFunctionInfo &FnInfo = - CGM.getTypes().getFunctionInfo(ResultType, Args, - FuncTy->getExtInfo()); + const CGFunctionInfo &FnInfo = CGM.getTypes().getFunctionInfo(Args, FuncTy); // Cast the function pointer to the right type. llvm::Type *BlockFTy = |