Zequan Wu
4d437348d2
fix test no-rtti.cpp
2020-09-16 11:03:15 -07:00
Hans Wennborg
2d9d270e77
Revert 3e782bf809
"[Sema][MSVC] warn at dynamic_cast when /GR- is given"
...
This caused more warnings than expected, see https://crbug.com/1126019
Also reverts the follow-up 7907e5516
.
> Differential Revision: https://reviews.llvm.org/D86369
2020-09-08 16:10:18 +02:00
Zequan Wu
7907e5516a
[Sema] fix /gr warning test case
2020-09-07 20:55:11 -07:00
Sunil Srivastava
a74031b640
Change the wording of RTTI errors to make them more generic.
...
An attempt to use dynamic_cast while rtti is disabled, used to emit the error:
cannot use dynamic_cast with -fno-rtti
and a similar one for typeid.
This patch changes that to:
use of dynamic_cast requires -frtti
Differential Revision: https://reviews.llvm.org/D47291
llvm-svn: 334153
2018-06-07 00:42:59 +00:00
Eli Friedman
3ce27103d9
Allow dynamic_cast to void* even with -fno-rtti.
...
PR17346.
llvm-svn: 191340
2013-09-24 23:21:41 +00:00
Arnaud A. de Grandmaison
cb6f943ada
Check dynamic_cast is not used with -fno-rtti, unless it is a noop or can be resolved statically.
...
llvm-svn: 187564
2013-08-01 08:28:32 +00:00
Nico Weber
1b7f39de3d
Error when using typeid() with -fno-rtti. PR 12888.
...
llvm-svn: 157139
2012-05-20 01:27:21 +00:00