[PATCH] [ms-cxxabi] Elide dtor access checks for pass-by-val objects in callees

Hans Wennborg hans at chromium.org
Sat Dec 14 17:27:57 PST 2013


Hi rnk, rsmith,

The ABI imposes the practical requirement that the destructors can be called, but the standard does not require access checks here. This is a stab at eliding those access checks to avoid rejecting valid code, as discussed in http://llvm-reviews.chandlerc.com/D2401?id=6089#inline-12829

http://llvm-reviews.chandlerc.com/D2409

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaChecking.cpp
  lib/Sema/SemaDeclCXX.cpp
  lib/Sema/SemaExpr.cpp
  test/SemaCXX/microsoft-dtor-lookup.cpp
  test/SemaObjCXX/microsoft-abi-byval.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2409.1.patch
Type: text/x-patch
Size: 10339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131214/b876d746/attachment.bin>


More information about the cfe-commits mailing list