mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
Silence a warning.
llvm-svn: 149155
This commit is contained in:
@@ -26,7 +26,7 @@ bool bad_typeid_test () {
|
||||
class B { virtual void g() {}};
|
||||
|
||||
B *bp = NULL;
|
||||
try { typeid(*bp) == typeid (A); }
|
||||
try {bool b = typeid(*bp) == typeid (A); }
|
||||
catch ( const std::bad_typeid &bc ) { return true; }
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user