Preserve exceptions information during calls code generation.
This patch changes the generation of CGFunctionInfo to contain the FunctionProtoType if it is available. This enables the code generation for call instructions to look into this type for exception information and therefore generate better quality IR - it will not create invoke instructions for functions that are know not to throw. llvm-svn: 253926
This commit is contained in:
@@ -1947,7 +1947,7 @@ CGObjCCommonMac::EmitMessageSend(CodeGen::CodeGenFunction &CGF,
|
||||
llvm::Instruction *CallSite;
|
||||
Fn = llvm::ConstantExpr::getBitCast(Fn, MSI.MessengerType);
|
||||
RValue rvalue = CGF.EmitCall(MSI.CallInfo, Fn, Return, ActualArgs,
|
||||
nullptr, &CallSite);
|
||||
CGCalleeInfo(), &CallSite);
|
||||
|
||||
// Mark the call as noreturn if the method is marked noreturn and the
|
||||
// receiver cannot be null.
|
||||
|
||||
Reference in New Issue
Block a user