diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 578e8e035c0..1080b75ed09 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -1130,6 +1130,7 @@ bool Reassociate::runOnFunction(Function &F) { // We are done with the rank map. RankMap.clear(); ValueRankMap.clear(); + DbgValues.clear(); return MadeChange; }