diff options
author | Zachary Turner <zturner@google.com> | 2016-06-16 18:22:27 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-06-16 18:22:27 +0000 |
commit | 01ee3dae043e305adaf2f8b46dffdbfe901ce24e (patch) | |
tree | c89a93cda93a6c76eb0b6e07cef4d32d450fb9ff /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 5a07687a8e0c670352063b5eca7a4aa6baa546e5 (diff) | |
download | llvm-01ee3dae043e305adaf2f8b46dffdbfe901ce24e.zip llvm-01ee3dae043e305adaf2f8b46dffdbfe901ce24e.tar.gz llvm-01ee3dae043e305adaf2f8b46dffdbfe901ce24e.tar.bz2 |
Resubmit "[pdb] Change type visitor pattern to be dynamic."
There was a regression introduced during type stream merging when
visiting a field list record. This has been fixed in this patch.
llvm-svn: 272929
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index ff719b2..d798901 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -322,10 +322,9 @@ void CodeViewDebug::emitTypeInformation() { ScopedPrinter SP(CommentOS); SP.setPrefix(CommentPrefix); CVTD.setPrinter(&SP); - bool DumpSuccess = - CVTD.dump({Record.bytes_begin(), Record.bytes_end()}); - (void)DumpSuccess; - assert(DumpSuccess && "produced malformed type record"); + Error EC = CVTD.dump({Record.bytes_begin(), Record.bytes_end()}); + assert(!EC && "produced malformed type record"); + consumeError(std::move(EC)); // 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. |