As far as I can tell, AnalysysResult::getResultImpl reuses an iterator into a DenseMap after inserting elements into it. This change recomputes the iterator before the second use.
(caveat: I'm not familiar with this bit of code, so it possible that I'm misreading it)