summaryrefslogtreecommitdiff
path: root/third_party/llvm-project/DWARFDebugInfoEntry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/llvm-project/DWARFDebugInfoEntry.cpp')
-rw-r--r--third_party/llvm-project/DWARFDebugInfoEntry.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/third_party/llvm-project/DWARFDebugInfoEntry.cpp b/third_party/llvm-project/DWARFDebugInfoEntry.cpp
index 87eab34d5..2da854fe2 100644
--- a/third_party/llvm-project/DWARFDebugInfoEntry.cpp
+++ b/third_party/llvm-project/DWARFDebugInfoEntry.cpp
@@ -38,7 +38,11 @@ bool DWARFDebugInfoEntry::extractFast(const DWARFUnit &U, uint64_t *OffsetPtr,
AbbrevDecl = nullptr;
return true;
}
- AbbrevDecl = U.getAbbreviations()->getAbbreviationDeclaration(AbbrCode);
+ if (auto* Abbreviations = U.getAbbreviations()) { // XXX BINARYEN
+ AbbrevDecl = Abbreviations->getAbbreviationDeclaration(AbbrCode);
+ } else {
+ AbbrevDecl = nullptr; // XXX BINARYEN
+ }
if (nullptr == AbbrevDecl) {
// Restore the original offset.
*OffsetPtr = Offset;