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 | 45d2e6492c48d41267f2d7576028422554c9875e (patch) | |
tree | d42ea8f3b5b2c9c173ea753714470adfb4ea3d5b /lib/DebugInfo | |
parent | 47c6d17b1cce85ba30471b2270419e35ba3d5653 (diff) | |
download | external_llvm-45d2e6492c48d41267f2d7576028422554c9875e.zip external_llvm-45d2e6492c48d41267f2d7576028422554c9875e.tar.gz external_llvm-45d2e6492c48d41267f2d7576028422554c9875e.tar.bz2 |
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
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFFormValue.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFFormValue.cpp b/lib/DebugInfo/DWARFFormValue.cpp index 2ee3934..c28f0dd 100644 --- a/lib/DebugInfo/DWARFFormValue.cpp +++ b/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]; }; } |