diff --git a/llvm/include/llvm/ADT/Any.h b/llvm/include/llvm/ADT/Any.h --- a/llvm/include/llvm/ADT/Any.h +++ b/llvm/include/llvm/ADT/Any.h @@ -31,7 +31,9 @@ // identifier for the type `T`. It is explicitly marked with default // visibility so that when `-fvisibility=hidden` is used, the loader still // merges duplicate definitions across DSO boundaries. - template struct TypeId { static const char Id; }; + template struct TypeId { + static const char Id; + }; struct StorageBase { virtual ~StorageBase() = default; @@ -119,7 +121,6 @@ template const char Any::TypeId::Id = 0; - template bool any_isa(const Any &Value) { if (!Value.Storage) return false;