DescriptionOFStream should have a virtual destructor.
I noticed that using --print-opt-code was producing output unreliably.
Upon investigation, it turns out OFStream's destructor was not marked
virtual. Fixing this fixes the problem, as ostream flushes at destruction.
BUG=
Committed: https://crrev.com/42963f41bae84e2ac3a9a196e794e25e22dca4d1
Cr-Commit-Position: refs/heads/master@{#32688}
Patch Set 1 #
Messages
Total messages: 10 (5 generated)
|