summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFFormValue.cpp
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-09-04 06:35:09 +0000
committerFrederic Riss <friss@apple.com>2014-09-04 06:35:09 +0000
commiteab1777170688b85f5ee763f9071837ccd70319c (patch)
tree7bc21e6788ca82b04285adfb2be950b87640a905 /llvm/lib/DebugInfo/DWARFFormValue.cpp
parent228ab3d7b33fde331e331750ece975f6769eeca8 (diff)
downloadbcm5719-llvm-eab1777170688b85f5ee763f9071837ccd70319c.tar.gz
bcm5719-llvm-eab1777170688b85f5ee763f9071837ccd70319c.zip
Fix build faliure introduced by r217129.
Looks like one can't put 'const uint8_t' as ArrayRef contained type. It fails to build with libstdc++. llvm-svn: 217132
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFFormValue.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFFormValue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp
index 2f8affc8623..8bd3a89411e 100644
--- a/llvm/lib/DebugInfo/DWARFFormValue.cpp
+++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp
@@ -549,9 +549,9 @@ Optional<uint64_t> DWARFFormValue::getAsUnsignedConstant() const {
return Value.uval;
}
-Optional<ArrayRef<const uint8_t>> DWARFFormValue::getAsBlock() const {
+Optional<ArrayRef<uint8_t>> DWARFFormValue::getAsBlock() const {
if (!isFormClass(FC_Block) && !isFormClass(FC_Exprloc))
return None;
- return ArrayRef<const uint8_t>(Value.data, Value.uval);
+ return ArrayRef<uint8_t>(Value.data, Value.uval);
}
OpenPOWER on IntegriCloud