From 73b0b2f55503e6b72e6525a115965a184e1a1dd7 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 16 Jun 2016 18:09:04 +0000 Subject: Revert "[pdb] Change type visitor pattern to be dynamic." This reverts commit fb0dd311e1ad945827b8ffd5354f4810e2be1579. This breaks some llvm-readobj tests. llvm-svn: 272927 --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index d798901..ff719b2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -322,9 +322,10 @@ void CodeViewDebug::emitTypeInformation() { ScopedPrinter SP(CommentOS); SP.setPrefix(CommentPrefix); CVTD.setPrinter(&SP); - Error EC = CVTD.dump({Record.bytes_begin(), Record.bytes_end()}); - assert(!EC && "produced malformed type record"); - consumeError(std::move(EC)); + bool DumpSuccess = + CVTD.dump({Record.bytes_begin(), Record.bytes_end()}); + (void)DumpSuccess; + assert(DumpSuccess && "produced malformed type record"); // emitRawComment will insert its own tab and comment string before // the first line, so strip off our first one. It also prints its own // newline. -- cgit v1.1