Fix undefined behavior.
authorRui Ueyama <ruiu@google.com>
Fri, 2 Dec 2016 00:38:15 +0000 (00:38 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 2 Dec 2016 00:38:15 +0000 (00:38 +0000)
commit395859bdb7534d4cf156539d5568cb30a0630038
tree2d69e8800b6434c671857bbb2b0ba0f13c709e6b
parent42f92a7225b538752895710bac0904dd1263d68c
Fix undefined behavior.

New items can be added to Ranges here, and that invalidates
an iterater that previously pointed the end of the vector.

llvm-svn: 288443
lld/ELF/ICF.cpp