[llvm] r260317 - Fix GCC build.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 9 15:01:39 PST 2016
Author: pcc
Date: Tue Feb 9 17:01:38 2016
New Revision: 260317
URL: http://llvm.org/viewvc/llvm-project?rev=260317&view=rev
Log:
Fix GCC build.
Modified:
llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp
Modified: llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp?rev=260317&r1=260316&r2=260317&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp Tue Feb 9 17:01:38 2016
@@ -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<VTableSl
}
};
+}
+
namespace {
// A virtual call site. VTable is the loaded virtual table pointer, and CS is
More information about the llvm-commits
mailing list