Distinguish more carefully between free functions and C++ instance methods
in the ABI arrangement, and leave a hook behind so that we can easily tweak CCs on platforms that use different CCs by default for C++ instance methods. llvm-svn: 159894
This commit is contained in:
@@ -876,7 +876,7 @@ RValue CodeGenFunction::EmitBlockCallExpr(const CallExpr* E,
|
||||
|
||||
const FunctionType *FuncTy = FnType->castAs<FunctionType>();
|
||||
const CGFunctionInfo &FnInfo =
|
||||
CGM.getTypes().arrangeFunctionCall(Args, FuncTy);
|
||||
CGM.getTypes().arrangeFreeFunctionCall(Args, FuncTy);
|
||||
|
||||
// Cast the function pointer to the right type.
|
||||
llvm::Type *BlockFTy = CGM.getTypes().GetFunctionType(FnInfo);
|
||||
|
||||
Reference in New Issue
Block a user