SymbolFile: Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D65089/r366791

llvm-svn: 367001
This commit is contained in:
Fangrui Song 2019-07-25 09:56:45 +00:00
parent 058858851c
commit 2e959415d7
1 changed files with 1 additions and 0 deletions

View File

@ -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