[Mlir-commits] [mlir] 1fff7c8 - Fix unused variable
Frederik Gossen
llvmlistbot at llvm.org
Tue Feb 23 02:19:57 PST 2021
Author: Frederik Gossen
Date: 2021-02-23T11:19:35+01:00
New Revision: 1fff7c892452b26c17844c7b651ef4959c316c1a
URL: https://github.com/llvm/llvm-project/commit/1fff7c892452b26c17844c7b651ef4959c316c1a
DIFF: https://github.com/llvm/llvm-project/commit/1fff7c892452b26c17844c7b651ef4959c316c1a.diff
LOG: Fix unused variable
Added:
Modified:
mlir/lib/Rewrite/ByteCode.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Rewrite/ByteCode.cpp b/mlir/lib/Rewrite/ByteCode.cpp
index 04b965869fb7..1986b3f87d96 100644
--- a/mlir/lib/Rewrite/ByteCode.cpp
+++ b/mlir/lib/Rewrite/ByteCode.cpp
@@ -1273,7 +1273,7 @@ void ByteCodeExecutor::execute(
case GetOperand3: {
unsigned index = opCode - GetOperand0;
LLVM_DEBUG(llvm::dbgs() << "Executing GetOperand" << index << ":\n");
- executeGetOperand(opCode - GetOperand0);
+ executeGetOperand(index);
break;
}
case GetOperandN:
@@ -1286,7 +1286,7 @@ void ByteCodeExecutor::execute(
case GetResult3: {
unsigned index = opCode - GetResult0;
LLVM_DEBUG(llvm::dbgs() << "Executing GetResult" << index << ":\n");
- executeGetResult(opCode - GetResult0);
+ executeGetResult(index);
break;
}
case GetResultN:
More information about the Mlir-commits
mailing list