1. Feb 18, 2013
  2. Feb 17, 2013
    • Hal Finkel's avatar
      BBVectorize: Fix an invalid reference bug · 76e65e45
      Hal Finkel authored
      This fixes PR15289. This bug was introduced (recently) in r175215; collecting
      all std::vector references for candidate pairs to delete at once is invalid
      because subsequent lookups in the owning DenseMap could invalidate the
      references.
      
      bugpoint was able to reduce a useful test case. Unfortunately, because whether
      or not this asserts depends on memory layout, this test case will sometimes
      appear to produce valid output. Nevertheless, running under valgrind will
      reveal the error.
      
      llvm-svn: 175397
      76e65e45