diff options
author | Uday Bondhugula <uday@polymagelabs.com> | 2022-01-04 08:24:14 +0530 |
---|---|---|
committer | Uday Bondhugula <uday@polymagelabs.com> | 2022-01-04 08:25:02 +0530 |
commit | 80b3f08eeee2f0e50ab3d9295e9c1d3f251592fb (patch) | |
tree | a9c53fb8bc05d6947bdb25bfa46215e0505d3215 | |
parent | 7de8488c3d7e9f4a5e2d05007e5ea17482a02410 (diff) | |
download | llvm-80b3f08eeee2f0e50ab3d9295e9c1d3f251592fb.tar.gz |
[MLIR[PDL] NFC. Fix unused variable warning in PDLToPDLInterp.cpp
NFC. Fix unused variable warning in PDLToPDLInterp.cpp.
Differential Revision: https://reviews.llvm.org/D116571
-rw-r--r-- | mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp index 9362a29ddb6f..b9c4dda9d649 100644 --- a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp +++ b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp @@ -239,7 +239,7 @@ Value PatternLowering::getValueAt(Block *¤tBlock, Position *pos) { // Get the value for the parent position. Value parentVal; if (Position *parent = pos->getParent()) - parentVal = getValueAt(currentBlock, pos->getParent()); + parentVal = getValueAt(currentBlock, parent); // TODO: Use a location from the position. Location loc = parentVal ? parentVal.getLoc() : builder.getUnknownLoc(); |