Skip to content

Commit

Permalink
[MLIR[PDL] NFC. Fix unused variable warning in PDLToPDLInterp.cpp
Browse files Browse the repository at this point in the history
NFC. Fix unused variable warning in PDLToPDLInterp.cpp.

Differential Revision: https://reviews.llvm.org/D116571
  • Loading branch information
bondhugula committed Jan 4, 2022
1 parent 7de8488 commit 80b3f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Value PatternLowering::getValueAt(Block *&currentBlock, 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();
Expand Down

0 comments on commit 80b3f08

Please sign in to comment.