forked from OSchip/llvm-project
SymbolFile: Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D65089/r366791
llvm-svn: 367001
This commit is contained in:
parent
058858851c
commit
2e959415d7
|
@ -189,6 +189,7 @@ void SymbolFile::SetCompileUnitAtIndex(uint32_t idx, const CompUnitSP &cu_sp) {
|
|||
std::lock_guard<std::recursive_mutex> 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
|
||||
|
|
Loading…
Reference in New Issue