From 2e959415d7be5840369d19ee5a97f1d7e5ad46d5 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 25 Jul 2019 09:56:45 +0000 Subject: [PATCH] SymbolFile: Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D65089/r366791 llvm-svn: 367001 --- lldb/source/Symbol/SymbolFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/source/Symbol/SymbolFile.cpp b/lldb/source/Symbol/SymbolFile.cpp index 7e634e6..7688d18 100644 --- a/lldb/source/Symbol/SymbolFile.cpp +++ b/lldb/source/Symbol/SymbolFile.cpp @@ -189,6 +189,7 @@ void SymbolFile::SetCompileUnitAtIndex(uint32_t idx, const CompUnitSP &cu_sp) { std::lock_guard guard(GetModuleMutex()); const size_t num_compile_units = GetNumCompileUnits(); assert(idx < num_compile_units); + (void)num_compile_units; // Fire off an assertion if this compile unit already exists for now. The // partial parsing should take care of only setting the compile unit -- 2.7.4