Skip to content
  1. Sep 13, 2017
  2. Sep 12, 2017
  3. Sep 11, 2017
  4. Sep 08, 2017
  5. Sep 07, 2017
  6. Sep 06, 2017
  7. Sep 05, 2017
    • Rui Ueyama's avatar
      Do not use invalid iterators to fix Windows build. · 888da8c2
      Rui Ueyama authored
      std::vector::insert invalidates all iterators, so it was not safe to do
      
        Script->Opt.Commands.insert(++I, Make(ElfSym::End1));
        Script->Opt.Commands.insert(++I, Make(ElfSym::End2));
      
      because after the first line, `I` is no longer valid.
      
      This patch rewrites fixes the issue. I belive the new code without
      higher-order functions is a bit more readable than before.
      
      llvm-svn: 312570
      888da8c2
Loading