diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2015-11-23 22:04:44 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2015-11-23 22:04:44 +0000 |
commit | 798f11cfb76dea68d2cda43e1623904c19d0bc61 (patch) | |
tree | bb4399b8d53819090abe0c4d2532bf8038a1f076 /clang/lib/CodeGen/CGObjCMac.cpp | |
parent | 2f16f25391b61e6c8dc13fdea528cfab84b3410d (diff) | |
download | llvm-798f11cfb76dea68d2cda43e1623904c19d0bc61.zip llvm-798f11cfb76dea68d2cda43e1623904c19d0bc61.tar.gz llvm-798f11cfb76dea68d2cda43e1623904c19d0bc61.tar.bz2 |
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
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index dad172b..78f3236 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -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. |