[cfe-commits] r136180 - in /cfe/trunk: lib/CodeGen/CGCXX.cpp test/CodeGenCXX/abstract-class-ctors-dtors.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Thu Jul 28 01:23:54 PDT 2011


On 27.07.2011 01:18, Douglas Gregor wrote:
> Author: dgregor
> Date: Tue Jul 26 18:18:30 2011
> New Revision: 136180
>
> URL: http://llvm.org/viewvc/llvm-project?rev=136180&view=rev
> Log:
> Disable the optimization that skips emission of complete, non-virtual
> destructors of abstract classes. It's undefined behavior to actually
> call the destructor (e.g., via delete), but the presence of code that
> calls this destructor doesn't make the program
> ill-formed. Fixes<rdar://problem/9819242>.
>
Can't we just replace the call with a trap instruction?

Sebastian



More information about the cfe-commits mailing list