llvm.org GIT mirror llvm / a9abde4
Fix a bug in the code of llvm-cxxdump in dumpArchive() when iterating over an archive with object and non-object members that would cause an Abort because to was not calling consumeError() when the code was wanting to ignore a non-object file. Found by Justin Bogner! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284867 91177308-0d34-0410-b5e6-96231b3b80d8 Kevin Enderby 2 years ago
3 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
22
33 RUN: llvm-cxxdump %p/Inputs/trivial.obj.elf-i386 \
44 RUN: | FileCheck %s --check-prefix=ELF-I386
5
6 RUN: llvm-cxxdump %p/Inputs/mixed-archive.coff-i386 \
7 RUN: | FileCheck %s --check-prefix=MIXEDARCOFF-I386
58
69 COFF-I386: ??_7S@@6B@[0]: ??_R4S@@6B@
710 COFF-I386-NEXT: ??_7S@@6B@[4]: ??_GS@@UAEPAXI@Z
5659 ELF-I386-NEXT: _ZTV1A[4]: _ZTI1A
5760 ELF-I386-NEXT: _ZTV1A[8]: _ZN1A1fEv
5861
62 MIXEDARCOFF-I386: ??_7S@@6B@[0]: ??_R4S@@6B@
63
5964 RUN: not llvm-cxxdump %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
6065 ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
501501 OS.flush();
502502 reportError(Arc->getFileName(), Buf);
503503 }
504 ChildOrErr.takeError();
504 consumeError(ChildOrErr.takeError());
505505 continue;
506506 }
507507