summaryrefslogtreecommitdiffstats
path: root/courgette
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 18:37:02 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 18:37:02 +0000
commit1baff834aaaadbcc16c340542da9dd0c8c1ad724 (patch)
treee23a194e7ca7cc57f8afb4385e154f890c0efbf4 /courgette
parent76176e8ac414c60540d9dcd146c8198a2988136b (diff)
downloadchromium_src-1baff834aaaadbcc16c340542da9dd0c8c1ad724.zip
chromium_src-1baff834aaaadbcc16c340542da9dd0c8c1ad724.tar.gz
chromium_src-1baff834aaaadbcc16c340542da9dd0c8c1ad724.tar.bz2
Make courgette compiler on clang and linux x64 builders
BUG=none TEST=none TBR=tommi Review URL: http://codereview.chromium.org/6802013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette')
-rw-r--r--courgette/courgette_tool.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc
index 225906e..fe08204 100644
--- a/courgette/courgette_tool.cc
+++ b/courgette/courgette_tool.cc
@@ -108,7 +108,8 @@ void Disassemble(const std::wstring& input_file,
courgette::DeleteEncodedProgram(encoded);
courgette::SinkStream sink;
- sinks.CopyTo(&sink);
+ if (!sinks.CopyTo(&sink))
+ Problem("Can't combine serialized encoded program streams.");
WriteSinkToFile(&sink, output_file);
}
@@ -157,7 +158,8 @@ void DisassembleAndAdjust(const std::wstring& program_file,
courgette::DeleteEncodedProgram(encoded);
courgette::SinkStream sink;
- sinks.CopyTo(&sink);
+ if (!sinks.CopyTo(&sink))
+ Problem("Can't combine serialized encoded program streams.");
WriteSinkToFile(&sink, output_file);
}