diff --git a/mlir/include/mlir/Support/STLExtras.h b/mlir/include/mlir/Support/STLExtras.h --- a/mlir/include/mlir/Support/STLExtras.h +++ b/mlir/include/mlir/Support/STLExtras.h @@ -93,11 +93,13 @@ /// Note: We specify an explicit alignment here to allow use with PointerIntPair /// and other utilities/data structures that require a known pointer alignment. struct alignas(8) ClassID { - template static ClassID *getID() { + template + LLVM_EXTERNAL_VISIBILITY static ClassID *getID() { static ClassID id; return &id; } - template