diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index c5730378fa60..2dd491e85c02 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -282,6 +282,7 @@ Error MaterializationResponsibility::defineMaterializing( // symbol error. for (auto &KV : NewSymbolFlags) { auto I = SymbolFlags.insert(KV).first; + (void)I; #ifndef NDEBUG I->second |= JITSymbolFlags::Materializing; #endif