summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwp/llvm-dwp.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-02-19 02:03:45 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-02-19 02:03:45 +0000
commit9a5d3645b4922d65735ef1520df22b6b301666fd (patch)
tree31e6fb77a28727962682dcae3ab3cac1e52d51f8 /llvm/tools/llvm-dwp/llvm-dwp.cpp
parent6a6376b17cdf6c0adf8e52a298beff75079d932a (diff)
downloadbcm5719-llvm-9a5d3645b4922d65735ef1520df22b6b301666fd.tar.gz
bcm5719-llvm-9a5d3645b4922d65735ef1520df22b6b301666fd.zip
llvm-dwp: Don't test compression when zlib isn't available
llvm-svn: 261298
Diffstat (limited to 'llvm/tools/llvm-dwp/llvm-dwp.cpp')
-rw-r--r--llvm/tools/llvm-dwp/llvm-dwp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp
index 52dee3add48..52788e389ed 100644
--- a/llvm/tools/llvm-dwp/llvm-dwp.cpp
+++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp
@@ -350,7 +350,7 @@ static std::error_code write(MCStreamer &Out, ArrayRef<std::string> Inputs) {
uint64_t OriginalSize;
if (!zlib::isAvailable() ||
!consumeCompressedDebugSectionHeader(Contents, OriginalSize))
- continue;
+ return make_error_code(std::errc::invalid_argument);
UncompressedSections.resize(UncompressedSections.size() + 1);
if (zlib::uncompress(Contents, UncompressedSections.back(), OriginalSize) !=
zlib::StatusOK) {
OpenPOWER on IntegriCloud