diff options
author | Weiming Zhao <weimingz@codeaurora.org> | 2014-01-23 19:55:33 +0000 |
---|---|---|
committer | Weiming Zhao <weimingz@codeaurora.org> | 2014-01-23 19:55:33 +0000 |
commit | 5930ae6cc2eb1946e7858bd49f1bf602f9c8308e (patch) | |
tree | d9071d9085130348ccba425f9e546da844070bf2 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
parent | 589d6c4118783b936c5aa8055ba4c79a36aa6446 (diff) | |
download | bcm5719-llvm-5930ae6cc2eb1946e7858bd49f1bf602f9c8308e.tar.gz bcm5719-llvm-5930ae6cc2eb1946e7858bd49f1bf602f9c8308e.zip |
[Thumbv8] Fix the value of BLXOperandIndex of isV8EligibleForIT
Originally, BLX was passed as operand #0 in MachineInstr and as operand
#2 in MCInst. But now, it's operand #2 in both cases.
This patch also removes unnecessary FileCheck in the test case added by r199127.
llvm-svn: 199928
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index dc9a308bb95..216f4aa2d64 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -7956,7 +7956,7 @@ MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, // Only after the instruction is fully processed, we can validate it if (wasInITBlock && hasV8Ops() && isThumb() && - !isV8EligibleForIT(&Inst, 2)) { + !isV8EligibleForIT(&Inst)) { Warning(IDLoc, "deprecated instruction in IT block"); } } |