Go to file
Matthias Gehre 09a134eca3 CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt
Summary:
VisitReturnStmt would create a new block with including Dtors, so the Dtors created
in VisitCompoundStmts would be in an unreachable block.

Example:

struct S {
  ~S();
};

void f()
{
  S s;
  return;
}

void g()
{
  S s;
}

Before this patch, f has one additional unreachable block containing just the
destructor of S. With this patch, both f and g have the same blocks.

Reviewers: krememek

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D13973

llvm-svn: 253107
2015-11-14 00:36:50 +00:00
clang CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt 2015-11-14 00:36:50 +00:00
clang-tools-extra [clang-tidy] Remove unused #includes. 2015-11-13 12:16:10 +00:00
compiler-rt [PGO] Ensure profile section symbols are created (linux) 2015-11-13 22:33:07 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Implement P0074: Making owner_less more flexible 2015-11-12 15:56:44 +00:00
libcxxabi Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
libunwind Make it possible to use libunwind without heap. 2015-11-09 06:57:29 +00:00
lld ELF2: Make comment less opinionated. 2015-11-13 18:56:07 +00:00
lldb Add a "not_in()" function you can apply to the list type arguments to expectedFailureAll to reverse 2015-11-14 00:20:33 +00:00
llgo debug: Update for debug info API change. 2015-11-05 22:04:20 +00:00
llvm [RuntimeDyld] Fix indentation and whitespace; NFC 2015-11-14 00:16:15 +00:00
openmp Add debug trace message for hierarchical barrier 2015-11-12 21:40:39 +00:00
polly ScopInfo: Reset compute operations before starting compute out region 2015-11-13 16:56:13 +00:00