[UBSan] Introduce type-based blacklisting.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 10 Jul 2014 22:34:19 +0000 (22:34 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 10 Jul 2014 22:34:19 +0000 (22:34 +0000)
commit848560125db5a2d8924dfbfc19adb0234d080c13
treeae6017631bf4fdd1b1a842bcb4df9fa15156d674
parentf34b454219d0c6e0bc18904136d3b80bd6691be3
[UBSan] Introduce type-based blacklisting.

Teach UBSan vptr checker to ignore technically invalud down-casts on
blacklisted types.

Based on http://reviews.llvm.org/D4407 by Byoungyoung Lee!

llvm-svn: 212770
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/SanitizerBlacklist.cpp
clang/lib/CodeGen/SanitizerBlacklist.h
clang/test/CodeGen/ubsan-type-blacklist.cpp [new file with mode: 0644]