diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-10-29 01:43:05 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-10-29 01:43:05 +0000 |
commit | f5f0b2051678814e0aa06880c889ce35458bada0 (patch) | |
tree | e4a0c0566b163d141d0b3edb7098351e888b866f /lib/DebugInfo | |
parent | c04d241d13820b33224b5cbd89a427fc08e5d1d9 (diff) | |
download | external_llvm-f5f0b2051678814e0aa06880c889ce35458bada0.zip external_llvm-f5f0b2051678814e0aa06880c889ce35458bada0.tar.gz external_llvm-f5f0b2051678814e0aa06880c889ce35458bada0.tar.bz2 |
DWARFFormValue.cpp: Appease gcc to give explicit constructors.
error: conversion from `const uint8_t*' to non-scalar type `llvm::ArrayRef<unsigned char>' requested
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFFormValue.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/DebugInfo/DWARFFormValue.cpp b/lib/DebugInfo/DWARFFormValue.cpp index b07f275..c14640a 100644 --- a/lib/DebugInfo/DWARFFormValue.cpp +++ b/lib/DebugInfo/DWARFFormValue.cpp @@ -66,13 +66,13 @@ ArrayRef<uint8_t> DWARFFormValue::getFixedFormSizes(uint8_t AddrSize, uint16_t Version) { uint8_t RefAddrSize = getRefAddrSize(AddrSize, Version); if (AddrSize == 4 && RefAddrSize == 4) - return FixedFormSizes<4, 4>::sizes; + return ArrayRef<uint8_t>(FixedFormSizes<4, 4>::sizes); if (AddrSize == 4 && RefAddrSize == 8) - return FixedFormSizes<4, 8>::sizes; + return ArrayRef<uint8_t>(FixedFormSizes<4, 8>::sizes); if (AddrSize == 8 && RefAddrSize == 4) - return FixedFormSizes<8, 4>::sizes; + return ArrayRef<uint8_t>(FixedFormSizes<8, 4>::sizes); if (AddrSize == 8 && RefAddrSize == 8) - return FixedFormSizes<8, 8>::sizes; + return ArrayRef<uint8_t>(FixedFormSizes<8, 8>::sizes); return None; } |