diff options
-rw-r--r-- | llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp index 92f119b2ba7..e131326de09 100644 --- a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp +++ b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp @@ -177,6 +177,8 @@ struct VTableSlot { } +namespace llvm { + template <> struct DenseMapInfo<VTableSlot> { static VTableSlot getEmptyKey() { return {DenseMapInfo<Metadata *>::getEmptyKey(), @@ -196,6 +198,8 @@ template <> struct DenseMapInfo<VTableSlot> { } }; +} + namespace { // A virtual call site. VTable is the loaded virtual table pointer, and CS is |