llvm.org GIT mirror llvm / 45d2e64
Quick-fix DebugInfo build on Windows MSVC can't comprehend template<typename T, size_t N> ArrayRef<T> makeArrayRef(const T (&Arr)[N]) { return ArrayRef<T>(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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193604 91177308-0d34-0410-b5e6-96231b3b80d8 Timur Iskhodzhanov 5 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2222 namespace {
2323 template struct FixedFormSizes {
24 static const uint8_t sizes[];
24 // FIXME: do we need a template here? Will a stack-allocated struct with
25 // an initializer in getFixedFormSizes() work just fine?
26 static const uint8_t sizes[27];
2527 };
2628 }