From cb4e7550ebe05824b89aa9ccc8d014f3e5c679e4 Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Tue, 29 Oct 2013 12:13:22 +0000 Subject: Quick-fix DebugInfo build on Windows MSVC can't comprehend template ArrayRef makeArrayRef(const T (&Arr)[N]) { return ArrayRef(Arr); } if Arr is static const uint8_t sizes[]; declared in a templated and defined a few lines later. I'll send a proper fix (i.e. get rid of unnecessary templates) for review soon. llvm-svn: 193604 --- llvm/lib/DebugInfo/DWARFFormValue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/DebugInfo') diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp index 2ee393494ec..c28f0dd5997 100644 --- a/llvm/lib/DebugInfo/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp @@ -22,7 +22,9 @@ using namespace dwarf; namespace { template struct FixedFormSizes { - static const uint8_t sizes[]; + // FIXME: do we need a template here? Will a stack-allocated struct with + // an initializer in getFixedFormSizes() work just fine? + static const uint8_t sizes[27]; }; } -- cgit v1.2.3