[llvm] r193575 - DWARFFormValue.cpp: Appease gcc to give explicit constructors.
NAKAMURA Takumi
geek4civic at gmail.com
Mon Oct 28 18:43:05 PDT 2013
Author: chapuni
Date: Mon Oct 28 20:43:05 2013
New Revision: 193575
URL: http://llvm.org/viewvc/llvm-project?rev=193575&view=rev
Log:
DWARFFormValue.cpp: Appease gcc to give explicit constructors.
error: conversion from `const uint8_t*' to non-scalar type `llvm::ArrayRef<unsigned char>' requested
Modified:
llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp?rev=193575&r1=193574&r2=193575&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp Mon Oct 28 20:43:05 2013
@@ -66,13 +66,13 @@ ArrayRef<uint8_t> DWARFFormValue::getFix
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;
}
More information about the llvm-commits
mailing list