diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-02-16 20:45:32 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-02-16 20:45:32 +0000 |
| commit | 954b921d6615024563b189027bcc5e3c737c328b (patch) | |
| tree | 6ba393315eb7781cf3ce8cfb28c7c6655c8f9592 /contrib/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | |
| parent | 574a8bf981301e233e953c3119165bea36118006 (diff) | |
| parent | 3c315f3a8e8f326948fc789f146794ecd33cc540 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
| -rw-r--r-- | contrib/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp b/contrib/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp index d94b0e5c2118b..2e5c224479362 100644 --- a/contrib/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp +++ b/contrib/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp @@ -163,7 +163,8 @@ uint64_t DebugHandlerBase::getBaseTypeSize(const DITypeRef TyRef) { DIType *BaseType = DDTy->getBaseType().resolve(); - assert(BaseType && "Unexpected invalid base type"); + if (!BaseType) + return 0; // If this is a derived type, go ahead and get the base type, unless it's a // reference then it's just the size of the field. Pointer types have no need |
