summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-10-31 19:55:08 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-10-31 19:55:08 +0000
commit0fad6dd3c44a8d9352a3e73dbac5fd285ceafbdf (patch)
tree2d27808a40376fd99fc52e4be58e5721c0a7c498 /llvm/lib/DebugInfo
parente8a4f0d869af3387be153656818e28432880ecb8 (diff)
downloadbcm5719-llvm-0fad6dd3c44a8d9352a3e73dbac5fd285ceafbdf.tar.gz
bcm5719-llvm-0fad6dd3c44a8d9352a3e73dbac5fd285ceafbdf.zip
Revert "[DWARF] Now that Optional is standard layout, put it into an union instead of splatting it."
GCC doesn't like it. This reverts commit r317028. llvm-svn: 317030
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp b/llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
index 1fc54d2065e..a88dcfcf542 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
@@ -214,8 +214,8 @@ Optional<int64_t> DWARFAbbreviationDeclaration::AttributeSpec::getByteSize(
const DWARFUnit &U) const {
if (isImplicitConst())
return 0;
- if (ByteSize)
- return *ByteSize;
+ if (ByteSize.HasByteSize)
+ return ByteSize.ByteSize;
Optional<int64_t> S;
auto FixedByteSize =
DWARFFormValue::getFixedByteSize(Form, U.getFormParams());
OpenPOWER on IntegriCloud