From 9b656527f1577dc24612f763cbf32a895eb3d514 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 9 Feb 2016 23:01:38 +0000 Subject: [PATCH] Fix GCC build. llvm-svn: 260317 --- llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp index 92f119b2ba78..e131326de098 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 { static VTableSlot getEmptyKey() { return {DenseMapInfo::getEmptyKey(), @@ -196,6 +198,8 @@ template <> struct DenseMapInfo { } }; +} + namespace { // A virtual call site. VTable is the loaded virtual table pointer, and CS is