commit | c764830bdb6de82baed068889096bd3e52d4cbda | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Wed Feb 13 21:18:23 2013 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Wed Feb 13 21:18:23 2013 +0000 |
tree | 73a7173f5bd2dcbb43b3950276f7e8f429a39a17 | |
parent | a03ab10f0e4d888139b3b694dd55d176982f72a4 [diff] |
ubsan: Add checking for invalid downcasts. Per [expr.static.cast]p2 and p11, base-to-derived casts have undefined behavior if the object is not actually an instance of the derived type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175078 91177308-0d34-0410-b5e6-96231b3b80d8