diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-10-29 12:13:22 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-10-29 12:13:22 +0000 |
commit | cb4e7550ebe05824b89aa9ccc8d014f3e5c679e4 (patch) | |
tree | 0bece9dc8e164b998fe42be0ee711fbbf5ba9d96 /llvm/lib/DebugInfo | |
parent | 6a20b7e77135876a1cf2b4ab22a58f6a3e606db2 (diff) | |
download | bcm5719-llvm-cb4e7550ebe05824b89aa9ccc8d014f3e5c679e4.tar.gz bcm5719-llvm-cb4e7550ebe05824b89aa9ccc8d014f3e5c679e4.zip |
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.
llvm-svn: 193604
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFFormValue.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <uint8_t AddrSize, uint8_t RefAddrSize> 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]; }; } |