OSDN Git Service

[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)
commit93d857e6a901f124458f00c728f656c6ab347810
treea80e36bc825ba740fe117ca786a07cb8e314133c
parentcc4d10e83e4c5330ddd518cf6690203a5d833518
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316785 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonConstExtenders.cpp
test/CodeGen/Hexagon/cext-opt-numops.mir [new file with mode: 0644]