[llvm] r337770 - Embed a template specialization in a namespace to work around a gcc bug.
Wolfgang Pieb via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 23 16:14:24 PDT 2018
Author: wolfgangp
Date: Mon Jul 23 16:14:23 2018
New Revision: 337770
URL: http://llvm.org/viewvc/llvm-project?rev=337770&view=rev
Log:
Embed a template specialization in a namespace to work around a gcc bug.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp?rev=337770&r1=337769&r2=337770&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp Mon Jul 23 16:14:23 2018
@@ -24,11 +24,13 @@ static Error createError(char const *Fmt
return make_error<StringError>(Stream.str(), inconvertibleErrorCode());
}
+namespace llvm { // workaround for gcc bug
template <>
Error DWARFListType<RangeListEntry>::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) {
More information about the llvm-commits
mailing list