diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -522,6 +522,7 @@ ProfileDataMap.clear(); CompilerUsedVars.clear(); UsedVars.clear(); + ReferencedNames.clear(); TT = Triple(M.getTargetTriple()); bool MadeChange = false;