[NFC][unwind] Improve error message when a type has more than one RTTIs
authorLouis Dionne <ldionne@apple.com>
Tue, 9 Oct 2018 14:55:15 +0000 (14:55 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 9 Oct 2018 14:55:15 +0000 (14:55 +0000)
commitdd1bed11d87e95cd05172fd6c1c3e7855f2ced6f
tree4f1dfdb9aaf0eac2fbf11f2c8c986db3235befa4
parent22cccffa06ad055a47e0d72c0de70a9131ed2943
[NFC][unwind] Improve error message when a type has more than one RTTIs

The "dynamic_cast error 2" error can apparently happen when the same
type (with RTTI) is defined in more than one translation unit, and
those translation units are linked together. This is technically an
ODR violation, but making the error message more obvious is still
helpful.

llvm-svn: 344052
libcxxabi/src/private_typeinfo.cpp