diff options
author | Piotr Padlewski <prazek@google.com> | 2015-09-09 22:20:28 +0000 |
---|---|---|
committer | Piotr Padlewski <prazek@google.com> | 2015-09-09 22:20:28 +0000 |
commit | 255652e828ea84957f76d6719436e34ece09605d (patch) | |
tree | fd7ccd2736929fe411a932a9a07928d386b400f2 /clang/lib/CodeGen/CGCall.cpp | |
parent | 66ef16b2890e57d4cc94e4ebf902a9ed741e8c26 (diff) | |
download | bcm5719-llvm-255652e828ea84957f76d6719436e34ece09605d.tar.gz bcm5719-llvm-255652e828ea84957f76d6719436e34ece09605d.zip |
Generating assumption loads of vptr after ctor call (fixed)
Generating call assume(icmp %vtable, %global_vtable) after constructor
call for devirtualization purposes.
For more info go to:
http://lists.llvm.org/pipermail/cfe-dev/2015-July/044227.html
Edit:
Fixed version because of PR24479.
After this patch got reverted because of ScalarEvolution bug (D12719)
Merged after John McCall big patch (Added Address).
http://reviews.llvm.org/D11859
llvm-svn: 247199
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index b54264b5054..344d06ba668 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -1417,7 +1417,8 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, if (const FunctionDecl *Fn = dyn_cast<FunctionDecl>(TargetDecl)) { const FunctionProtoType *FPT = Fn->getType()->getAs<FunctionProtoType>(); - if (FPT && FPT->isNothrow(getContext())) + if (FPT && !isUnresolvedExceptionSpec(FPT->getExceptionSpecType()) && + FPT->isNothrow(getContext())) FuncAttrs.addAttribute(llvm::Attribute::NoUnwind); // Don't use [[noreturn]] or _Noreturn for a call to a virtual function. // These attributes are not inherited by overloads. |