[Hexagon] Assertion failure in HexagonSubtarget.cpp
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 26 Mar 2018 19:04:58 +0000 (19:04 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 26 Mar 2018 19:04:58 +0000 (19:04 +0000)
commit4a5a80c370cf542cc342fa46bbb3ff28fd7f0b6e
tree1927d084719550b7523bdf0d170ca8d3ad0ea79f
parentfcf49df21cd841941317f59cbe69726725f36809
[Hexagon] Assertion failure in HexagonSubtarget.cpp

In restoreLatency, replace range-for loop with std::find.

Patch by Jyotsna Verma.

llvm-svn: 328574
llvm/lib/Target/Hexagon/HexagonSubtarget.cpp