summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/Symbols.cpp
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2017-03-23 09:52:26 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2017-03-23 09:52:26 +0000
commitef4536c38968517405a4429bacf5be0add0ea99e (patch)
tree8adcba1d45770668658bc5acc32676e716ccc327 /lldb/source/Host/common/Symbols.cpp
parent93683b6aff93b938c2d996a5b39ada20e12e751d (diff)
downloadbcm5719-llvm-ef4536c38968517405a4429bacf5be0add0ea99e.tar.gz
bcm5719-llvm-ef4536c38968517405a4429bacf5be0add0ea99e.zip
Fix warnings from clang build on macOS.
Reviewers: lldb-commits Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D31279 llvm-svn: 298585
Diffstat (limited to 'lldb/source/Host/common/Symbols.cpp')
-rw-r--r--lldb/source/Host/common/Symbols.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Symbols.cpp b/lldb/source/Host/common/Symbols.cpp
index e3d5bdfab7b..c45ca11b309 100644
--- a/lldb/source/Host/common/Symbols.cpp
+++ b/lldb/source/Host/common/Symbols.cpp
@@ -55,6 +55,7 @@ static bool FileAtPathContainsArchAndUUID(const FileSpec &file_fspec,
ModuleSpec spec;
for (size_t i = 0; i < module_specs.GetSize(); ++i) {
bool got_spec = module_specs.GetModuleSpecAtIndex(i, spec);
+ UNUSED_IF_ASSERT_DISABLED(got_spec);
assert(got_spec);
if ((uuid == NULL || (spec.GetUUIDPtr() && spec.GetUUID() == *uuid)) &&
(arch == NULL || (spec.GetArchitecturePtr() &&
OpenPOWER on IntegriCloud