[Hexagon] Fix an incorrect assertion in HexagonConstExtenders.cpp
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 27 Oct 2017 18:52:28 +0000 (18:52 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 27 Oct 2017 18:52:28 +0000 (18:52 +0000)
commit92a2635bbd239ba2a239a3f081e30a8c3873b465
tree7aa51fa3d7dc1b0730ab0b74a41e35e476de5dec
parent857ac594b7b97aa0769d8e4a2c4ecb485665de58
[Hexagon] Fix an incorrect assertion in HexagonConstExtenders.cpp

Making sure that an instruction has fewer operands than required, then
attempting to access one out of range is going to fail.

llvm-svn: 316785
llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
llvm/test/CodeGen/Hexagon/cext-opt-numops.mir [new file with mode: 0644]