diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-10-31 19:40:03 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-10-31 19:40:03 +0000 |
commit | 159d0eccfeefcc80fdbf2142bba72fe49d0535aa (patch) | |
tree | da9c87069f4c72a7f604a1b8a244f41f5e3cbcdb /lib/DebugInfo | |
parent | aeaa65aec3fdd62da98a220195fa64c7ee81e86c (diff) |
[DWARF] Now that Optional is standard layout, put it into an union instead of splatting it.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp b/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp index a88dcfcf542..1fc54d2065e 100644 --- a/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp +++ b/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.HasByteSize) - return ByteSize.ByteSize; + if (ByteSize) + return *ByteSize; Optional<int64_t> S; auto FixedByteSize = DWARFFormValue::getFixedByteSize(Form, U.getFormParams()); |