summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2021-10-13 13:27:25 +0100
committerJeremy Morse <jeremy.morse@sony.com>2021-10-13 13:27:25 +0100
commite845ca2ff121b31bef49c1271d2a0926d7fe5989 (patch)
treeb5b96e1775f3031529022d823248233e81416213 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parentd1e0f02e0ba98cd371749c8d70ee9d153c559e91 (diff)
Follow up a3936a6c19c to work around an old compiler bug
Old versions of gcc want template specialisations to happen within the namespace where the template lives; this is still present in gcc 5.1, which we officially support, so it has to be worked around.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 904b7fd9ba87..80aef47aa934 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -1972,11 +1972,13 @@ using MachineDomTreeBase = DomTreeBase<MachineBasicBlock>::NodeType;
using MachineDomTreeChildGetter =
typename IDFCalculatorDetail::ChildrenGetterTy<MachineDomTreeBase, false>;
+namespace IDFCalculatorDetail {
template <>
typename MachineDomTreeChildGetter::ChildrenTy
MachineDomTreeChildGetter::get(const NodeRef &N) {
return {N->succ_begin(), N->succ_end()};
}
+} // namespace IDFCalculatorDetail
} // namespace llvm
void InstrRefBasedLDV::BlockPHIPlacement(