From: Wolfgang Pieb Date: Mon, 23 Jul 2018 23:14:23 +0000 (+0000) Subject: Embed a template specialization in a namespace to work around a gcc bug. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d6fb152e57da7dfcbac9eb397b1d5ee51818e3a;p=llvm Embed a template specialization in a namespace to work around a gcc bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337770 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp b/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp index fac075ba536..b19c808a8fb 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp @@ -24,11 +24,13 @@ static Error createError(char const *Fmt, const Ts &... Vals) { return make_error(Stream.str(), inconvertibleErrorCode()); } +namespace llvm { // workaround for gcc bug template <> Error DWARFListType::createError(const char *Fmt, const char *s, uint32_t Val) { return ::createError(Fmt, s, Val); } +} Error RangeListEntry::extract(DWARFDataExtractor Data, uint32_t End, uint32_t *OffsetPtr) {