[PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

Evgeniy Stepanov via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 2 14:17:42 PST 2016


eugenis created this revision.
eugenis added reviewers: pcc, kcc.
eugenis added a subscriber: cfe-commits.
eugenis set the repository for this revision to rL LLVM.

Avoid crashing when printing diagnostics for vtable-related CFI
errors. In diagnostic mode, the frontend does an additional check of
the vtable pointer against the set of all known vtable addresses and
lets the runtime handler know if it is safe to inspect the vtable.

Repository:
  rL LLVM

http://reviews.llvm.org/D16823

Files:
  lib/CodeGen/CGClass.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CodeGenFunction.h
  lib/CodeGen/CodeGenModule.cpp
  test/CodeGen/cfi-check-fail.c
  test/CodeGenCXX/cfi-cast.cpp
  test/CodeGenCXX/cfi-vcall.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16823.46703.patch
Type: text/x-patch
Size: 15181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160202/8d29b5ba/attachment.bin>


More information about the cfe-commits mailing list