diff options
author | Dan Gohman <dan433584@gmail.com> | 2016-04-26 01:40:56 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2016-04-26 01:40:56 +0000 |
commit | f456290fca06b368c2b6ab07ef29af2193c403e8 (patch) | |
tree | 3f9c52c90b364874e7c1d9b680b3ac6799ec132a /llvm/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp | |
parent | 2bcc9ad88c05a8008750e8e5d95c629664f09f51 (diff) | |
download | bcm5719-llvm-f456290fca06b368c2b6ab07ef29af2193c403e8.tar.gz bcm5719-llvm-f456290fca06b368c2b6ab07ef29af2193c403e8.zip |
[WebAssembly] Account for implicit operands when computing operand indices.
llvm-svn: 267511
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp index 65e79d4765d..5dc90920e31 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp @@ -204,7 +204,7 @@ bool WebAssemblyFixIrreducibleControlFlow::VisitLoop(MachineFunction &MF, if (!Pair.second) continue; - unsigned Index = MIB.getInstr()->getNumOperands() - 1; + unsigned Index = MIB.getInstr()->getNumExplicitOperands() - 1; DEBUG(dbgs() << "MBB#" << MBB->getNumber() << " has index " << Index << "\n"); |